Animating digital graphics overlaid on visual media items based on dynamic attributes

ABSTRACT

This disclosure covers methods, computer-readable media, and systems that animate a digital graphic associated with a video or other visual media item based on a detected dynamic attribute. In particular, the disclosed methods, computer-readable media, and systems detect sensor data from a client device or a motion of an object within a video or other visual media item. Based on the detected sensor data or motion of an object within a visual media item, the methods, computer-readable media, and systems overlay and animate an emoji or other digital graphic selected by a user on a video or other visual media item.

BACKGROUND

Recent years have seen rapid development in systems that enableindividuals to digitally communicate with others. Indeed, as a result ofproliferation in smartphones, tablets, laptops, computers, smartwatches, smart televisions, and other computing devices, individualshave increased access to devices capable of sending and receivinginformation in relation to other individual users. Accordingly,developers have generated a variety of digital applications that allowclients to utilize computing devices to participate in various forms ofdigital communication.

For example, some conventional digital communications systems enableusers to send videos, images, emoji, stickers, and other types ofcommunications. Furthermore, some conventional digital communicationssystems further enable users to add comments to visual media itemsexchanged through the digital communications systems. For example, somedigital communications systems enable a user to add a written commentbelow or overlaid on a video sent in a communication thread. Althoughsuch conventional systems allow users to communicate with multiple typesof content and comment or react to such communications, these systemshave a number of shortcomings. For instance, although conventionaldigital communications systems provide for commenting, conventionalcommenting is standardized and rigid and provides little to noflexibility. Indeed, many conventional digital communications systemslimit comments to written text and reactions to standardized emoji andstickers. As written text or standardized emoji and stickers,conventional comments and reactions for a digital image, video, orlive-stream video often lack expressive nature and individuality.

Under some circumstances, users in a messaging thread may add longercomments to communicate a more expressive response. Particularly inmobile devices, long or multiple comments elongate a messaging threadsuch that a mobile device's screen no longer shows the visual media itemto which the comments pertain. Additionally, long or multiple commentsthat provide for expressive responses often clutter the user interfaceof mobile devices.

These and other problems exist with regard to conventional digitalcommunications systems for communicating and sharing digital messageswith other users.

SUMMARY

This disclosure describes one or more embodiments of methods,computer-readable media, and systems that solve some or all theforegoing problems and provide other benefits. To solve these and otherproblems, the disclosed methods, computer-readable media, and systemsanimate a digital graphic associated with a video or other visual mediaitem based on a detected dynamic attribute. The disclosed methods,computer-readable media, and systems may, for example, detect sensordata from a client device as a dynamic attribute or a motion of anobject within a video or other visual media item as a dynamic attribute.Based on the detected dynamic attribute, the methods, computer-readablemedia, and systems overlay and animate an emoji or other digital graphicselected by a user on a video or other visual media item.

For instance, in some embodiments, the methods, computer-readable media,and systems receive a selection from a user to overlay a digital graphicon a visual media item. The methods, computer-readable media, andsystems then detect or receive a dynamic attribute from a client device,such as by detecting sensor data from the client device or detecting amotion of an object within the visual media item. Using this dynamicattribute as a trigger, the disclosed methods, computer-readable media,and systems then provide the digital graphic as an overlay on the visualmedia item with an animation effect.

By animating the digital graphic to reflect the detected dynamicattribute, the disclosed methods, computer-readable media, and systemsprovide a digital graphic that reflects a motion or change associatedwith a client device that presents a visual media item. Accordingly, thedisclosed methods, computer-readable media, and systems represent amotion of an object within the visual media item or a motion or otherchange to a client device by animating a selected digital graphicassociated with the visual media item. That animation is thusindividualized and communicates a user's interaction with (or reactionto) a visual media item without requiring verbose comments.

BRIEF DESCRIPTION OF THE DRAWINGS

The detailed description refers to the drawings briefly described below.

FIGS. 1A-1B illustrate user interfaces of a client device that comprisea digital graphic overlaid on a video with an animation effect based onsensor data from the client device in accordance with one or moreembodiments.

FIG. 1C illustrates a user and a user interface of a client device thatcomprises a digital graphic overlaid on a video with an animation effectbased on sensor data from the client device in accordance with one ormore embodiments.

FIGS. 2A-2B illustrate user interfaces of a client device that comprisea digital graphic overlaid on a video with an animation effect based ona motion within the video in accordance with one or more embodiments.

FIG. 3 illustrates a block diagram of an environment for implementing asystem in accordance with one or more embodiments.

FIGS. 4A-4B illustrate a sequence-flow diagram of animating a digitalgraphic associated with a visual media item based on a detected dynamicattribute in accordance with one or more embodiments.

FIGS. 5A-5B illustrate a sequence-flow diagram of animating a digitalgraphic associated with a visual media item based on a detected dynamicattribute in accordance with one or more embodiments.

FIG. 6 illustrates a flowchart of a series of acts of animating adigital graphic associated with a visual media item based on a detecteddynamic attribute in accordance with one or more embodiments.

FIG. 7 illustrates a flowchart of a series of acts of animating adigital graphic associated with a visual media item based on a detecteddynamic attribute in accordance with one or more embodiments.

FIG. 8 illustrates a block diagram of an example computing device inaccordance with one or more embodiments.

FIG. 9 illustrates a network environment of a social networking systemaccording to one or more embodiments.

FIG. 10 illustrates an example social graph for a social networkingsystem in accordance with one or more embodiments.

DETAILED DESCRIPTION

This disclosure describes one or more embodiments of a digitalcommunications system that animates a digital graphic associated with avideo or other visual media item based on a detected dynamic attribute.In some embodiments, for example, the disclosed digital communicationssystem detects sensor data from a client device as a dynamic attributeor a motion within a video of the client device as a dynamic attribute.The digital communications system then overlays and animates a digitalgraphic selected by a user on a video or other visual media item basedon the detected dynamic attribute.

For instance, in some embodiments, the digital communications systemreceives a selection from a user to overlay a digital graphic on avisual media item. The digital communications system then detects adynamic attribute or receives an indication of a dynamic attribute froma client device. The digital communications system may, for example,detect sensor data from the client device or a motion of an objectwithin the visual media item as a dynamic attribute. Using the dynamicattribute as a trigger, the digital communications system provides thedigital graphic as an overlay on the visual media item with an animationeffect based on the dynamic attribute.

When detecting a dynamic attribute, the digital communications systemmay detect a dynamic attribute from the client device's sensor. Thisdynamic attribute may represent a direction, motion, orientation, orother spatial reference of a client device. In some embodiments, thedigital communications system then determines an animation effect for aselected digital graphic based on the dynamic attribute. For example,the digital communications system may determine that a jumping animationor spinning animation corresponds to a detected motion or orientationfrom a client device's sensor. In some cases, the digital communicationssystem maps the dynamic attribute to an animation effect. This animationeffect may be the only animation effect corresponding to a selecteddigital graphic or one of many animation effects to which the digitalcommunications system may map the dynamic attribute.

By contrast, in some embodiments, the digital communications systemdetects (as a dynamic attribute) a motion of an object within a visualmedia item. The digital communications system may detect, for example, apattern or a speed of an object's motion within a video. The digitalcommunications system then optionally determines an animation effect fora selected digital graphic based on the detected motion of the objectwithin the visual media item. For example, the digital communicationssystem may determine that a beating-heart animation or flashinganimation corresponds to a detected pattern or speed of the object'smotion. Similar to some embodiments noted above, in some cases, thedigital communications system maps the motion of an object within avisual media item to an animation effect.

The digital communications system can use the dynamic attribute toidentify an animation to apply, determine a characteristic to apply toan animation effect, or a combination of the foregoing. For example, agiven selected digital graphic may be associated with a plurality ofanimation effects each mapped to a different type of dynamic attributeor a different magnitude of a dynamic attribute. Based on the detecteddynamic attribute, the digital communications system can identify ananimation effect of the plurality of animation effects to apply to theselected digital graphic.

On the other hand, in one or more embodiments, a given digital graphicmay be associated with a single animation effect. In such, instances ofthe digital communications system use the dynamic attribute to select ormodify a characteristic of the animation effect. For instance, based onthe detected dynamic attribute, or a magnitude of the detected dynamicattribute, the digital communications system can modify the frequency,size, duration, opacity, or other characteristic of the animationeffect. For example, the digital communications system may increase thefrequency of an animation effect based on detecting an acceleratingmotion of a client device. Alternatively, the digital communicationssystem may decrease the frequency of an animation effect based ondetecting that a decelerating motion of an object within a visual mediaitem.

As noted above, some conventional digital communications systems lacksuitable response mechanisms for users to interact with visual mediaitems or to receive indications of other users' feedback. Indeed, somesuch conventional digital communications systems provide options for auser to add an emoji or a digital sticker to a digital image or a video.But such emojis and digital stickers are often static or otherwise donot reflect a user's interaction or response to a visual media item.Such emojis and digital stickers also often fail to account for anymovement from within the visual media item or from the client device.The disclosed digital communications system, however, provides emojis,digital stickers, and other digital graphics that represent userinteractions and movement through animation.

The disclosed digital communications system thus delivers a more dynamicdigital graphic that use animation to represent dynamic attributes fromthe client device. The animation may reflect motion or change within (orwithout) a client device. As noted above, the disclosed digitalcommunications system may represent a motion of an object within thevisual media item or a motion or other change to a client device byanimating a selected digital graphic associated with the visual mediaitem. That animation communicates a user's interaction with (or reactionto) a visual media item and thus creates a more interactive experience.

In addition to creating a more interactive and dynamic experience withanimated digital graphics, the disclosed digital communications systemmay also reduce the amount of data shown within a graphical userinterface of a computing device, such as a mobile device. As notedabove, some digital communications systems enable users to add commentsbelow or overlaid on digital images and video. But written comments canobfuscate a digital image or video when, for example, a messaging threadassociated with or overlaid on a digital image or video becomes lengthy.The disclosed digital communications system, however, reduces theclutter of written comments by providing animated digital graphics asanother option for users to communicate or interact with a visual mediaitem. Users may frequently choose the ease and expressiveness of ananimated digital graphic rather than written comments and thus free upspace on a graphical user interface for the underlying visual mediaitem.

Turning now to the figures, FIGS. 1A and 1B illustrate graphical userinterfaces of a client device that include digital graphics as overlayson visual media items. As indicated by FIGS. 1A and 1B, the digitalcommunications system provides these digital graphics with animationeffects. To trigger the depicted animation effects, the digitalcommunications system detects sensor data from a sensor of the clientdevice and then presents digital graphics with animation effects basedon the detected sensor data. In other words, FIGS. 1A and 1B illustratean embodiment of the digital communications system that detects sensordata as a dynamic attribute that triggers the client device to presentdigital graphics with animation effects. In some embodiments, thedigital communications system causes a client device to present adigital graphic as an overlay initially without an animation effect andthen—upon detecting a dynamic attribute—causes the client device topresent the digital graphic with the animation effect.

As used in this disclosure, the term “digital graphic” refers to adigital drawing, emoji, icon, illustration, sticker, or combinationthereof. For example, the digital communications system may create orpresent a vector graphic, vector artwork, rasterized graphic, orrasterized artwork as a digital graphic. In some embodiments, forinstance, the digital communications system uses emojis or other digitalgraphics as overlays on a digital image, video, or other visual mediaitem. The term “visual media item” refers to a digital image, video, orlive-video stream. Accordingly, a visual media item may include bothstatic digital images and dynamic digital images. For instance, a visualmedia item may include a static digital image, a bitmap image inGraphics Interchange Format (“GIF”), or a digital video.

Relatedly, the term “animation effect” refers to computer animation of adigital graphic that creates an illusion of movement or other change tothe digital graphic. In some embodiments, an animation effect comprisessuccessive presentation of two-dimensional or three-dimensional digitalimages to create an illusion that a digital graphic is moving. Forexample, an animation effect may include rapidly presenting a series oftwo-dimensional digital images to mimic a beating heart using digitalimages of a heart repeatedly expanding and contracting in size. In someembodiments, the animation effect runs in a loop by repeatedlypresenting digital images in a particular order. Alternatively oradditionally, in some embodiments, the animation effect successivelypresents digital images in a particular order—and then presents thedigital images in a reverse order—to create an animation effect of aforwards-and-backwards movement.

The term “dynamic attribute” refers to sensor data from a client deviceor a motion of an object within a visual media item. For example, adynamic attribute may include sensor data from an accelerometer,gyroscope, light sensor, or Global Position System (“GPS”) of a clientdevice. As another example, a dynamic attribute may include a motion ofa person, pixel, or any other object within a live-video stream, video,GIF, or other visual media item.

In the embodiments shown in FIGS. 1A-2B, the digital communicationssystem includes instructions that, when executed by a processor of aclient device, cause the client device to perform certain actions, suchas present a visual media item within a graphical user interface, detectdynamic attributes, and present digital graphics as overlays on visualmedia items with animation effects. In some embodiments, the digitalcommunications system takes the form of a digital communicationsapplication running on the client device. In other embodiments, thedigital communications system takes the form of software running on aserver that communicates with the client device. Rather than repeatedlydescribe the relationship between the instructions within the digitalcommunications system and the client device, this disclosure primarilydescribes the digital communications system as performing certain actsas a shorthand for that relationship.

Turning back now to FIG. 1A, this figure illustrates the digitalcommunications system providing a digital graphic 110 as an overlay on avideo within a graphical user interface 104 (“GUI 104”). As shown, aclient device 100 includes a touch screen 102 that facilitatespresentation of the video within the GUI 104. Although not shown, anadditional client device transmits the video depicted within the GUI 104to the client device 100. The digital communications system (e.g., adigital communications application running on the client device 100)includes instructions that, when executed by a processor of the clientdevice 100, cause the client device 100 to present the video to theviewer. Accordingly, FIG. 1A depicts the video from a viewer'sperspective, where the viewer operates the client device 100.

As depicted by FIG. 1A, the client device 100 receives user input fromthe viewer to overlay the digital graphic 110 on the video within theGUI 104. For example, the digital communications system may present amenu of digital graphics on the GUI 104 from which the viewer may selectfor overlay on the video. The digital communications system thenreceives an indication of a user selection of the digital graphic 110 onthe touch screen 102 and identifies metadata associated with the digitalgraphic 110. The identified metadata indicates an animation effect forthe digital graphic 110 and a dynamic attribute that triggers theanimation effect.

Consistent with the metadata associated with the digital graphic 110,the digital communications system detects the dynamic attributespecified by the metadata. As shown in FIG. 1A, arrows 112 a and 112 brepresent a speed detected by an accelerometer as the dynamic attributespecified by the metadata. Per the digital communications system'sinstructions, the accelerometer of the client device 100 detects a speedof the client device 100 in the direction indicated by the arrows 112 aand 112 b. The client device 100 in turn communicates the accelerometerdata to the digital communications system as a particular speed (e.g.,10 miles per hour as the viewer runs, 30 miles per hour as the viewertravels in a car).

Upon receiving the accelerometer data—and per the digital communicationssystem's instructions—the client device 100 presents the digital graphic110 as an overlay within the GUI 104 with the animation effect. Asspecified by the metadata, the animation effect in this particularembodiment represents a beating heart. Per the digital communicationssystem's instructions, the client device 100 interchangeably presentslarger and smaller images of the digital graphic 110 to create theillusion of a beating heart as the animation effect. The dotted outlineof the digital graphic 110 represents a larger image, and thesolid-colored shape within the dotted outline of the digital graphic 110represents a smaller image.

As noted above, in some embodiments, the digital communications systemalso determines a magnitude of a dynamic attribute and presents adigital graphic with an animation effect having a frequency based on themagnitude of the dynamic attribute. FIG. 1A depicts one embodiment ofthis correlation between a dynamic attribute's magnitude and ananimation effect's frequency. Specifically, as the client device 100detects a faster speed from the accelerometer, the digitalcommunications system increases the frequency of the beatinganimation—with the client device 100 more rapidly presenting large andsmall images of the digital graphic 110 in proportion to the fasterspeed. By contrast, as the client device 100 detects a slower speed fromthe accelerometer, the digital communications system decreases thefrequency of the beating animation—with the client device 100 moreslowly presenting the large and small images of the digital graphic 110in proportion to the slower speed.

In addition to the digital graphic 110, in one or more embodiments, theGUI 104 includes a live indicator 106 and a viewer indicator 108. Thelive indicator 106 indicates to the viewer that the digitalcommunications system is currently broadcasting the video. As notedabove and as shown in FIG. 1A, the video within the GUI 104 is alive-video stream transmitted by another client device. Relatedly, theviewer indicator 108 indicates a number of viewers who are currentlyviewing the live-video stream. As noted above, however, in someembodiments, the visual media item may include a live video orpreviously recorded video and may be transmitted from one client deviceto a single client device, rather than as a broadcast to multiple clientdevices.

In addition to broadcast and one-to-one-client-device transmission ofvideo, in some embodiments, the digital communications system alsotransmits an indication of a digital graphic selected by a user (and acorresponding animation effect) for presentation to other clientdevices. In the embodiment shown in FIG. 1A, for example, the digitalcommunications system transmits an indication of the digital graphic 110and an indication of its corresponding animation effect to other clientdevices presenting the live-video stream, including the client devicefrom which the live-video stream originates. Upon receipt, theindication of the digital graphic 110 and the indication of theanimation effect trigger the digital communications system to presentthe digital graphic 110 as an overlay on the live-stream video withingraphical user interfaces of the other client devices. In some suchembodiments, the digital communications system presents the digitalgraphic 110 as an overlay with the animation effect based on thedetected speed, as described above.

Turning now to FIG. 1B, this figure illustrates the digitalcommunications system providing a digital graphic 122 as an overlay on alive-stream video within a graphical user interface 114 (“GUI 114”). Asshown, the client device 100 presents the live-video stream within theGUI 104. By contrast to FIG. 1A, the client device 100 in FIG. 1B bothrecords and transmits the live-video stream. Specifically, in responseto a user selecting a live-transmission option (not shown) or anotheroption associated with a live-video stream, the client device 100initiates a live-video stream as follows: a camera 113 of the clientdevice 100 captures a video from the user's perspective, the clientdevice 100 transmits a live-video stream to the digital communicationssystem, and the client device 100 presents the live-video stream withinthe GUI 114 through the touch screen 102. The GUI 114 thus presents adisplay of the live-video stream for the user during a live-video-streambroadcast.

As depicted by FIG. 1B, the client device 100 receives user input fromthe user to overlay the digital graphic 122 on the video within the GUI114. Upon receiving an indication of a user selection of the digitalgraphic 122 on the touch screen 102, the digital communications systemidentifies metadata associated with the digital graphic 110. In theembodiment of FIG. 1B, the metadata indicates multiple animation-effectoptions corresponding to the digital graphic 122, with eachanimation-effect option corresponding to an animation effect. Themetadata further indicates a dynamic attribute that triggers eachanimation effect.

Consistent with the metadata associated with the digital graphic 122,the digital communications system detects one of the dynamic attributesspecified by the metadata. In this case, per the digital communicationssystem's instructions, a gyroscope of the client device 100 detects adirection of the client device 100's rotation indicated by arrows 120 aand 120 b as a dynamic attribute. Relatedly, an accelerometer of theclient device 100 detects a speed indicated by the arrows 120 a and 120b as a magnitude of the dynamic attribute. The client device 100 in turncommunicates the accelerometer data and the gyroscope data to thedigital communications system as a particular direction of the clientdevice 100's rotation (e.g., a rotation of 360 degrees in acounterclockwise direction around a perpendicular axis) and a particularspeed. As the arrows 120 a and 120 b represent both a dynamic attributeand a magnitude of the dynamic attribute, the speed and direction ofrotation may vary over time.

Upon receiving sensor data, such as data from the accelerometer and thegyroscope, the digital communications system optionally maps the sensordata to an animation-effect option from among the multipleanimation-effect options included within metadata for a digital graphic.For example, in some embodiments, the metadata for a digital graphicpoints to an animation-effect database within the digital communicationssystem that correlates dynamic attributes with animation-effect options.In such embodiments, the digital communications system uses theanimation-effect database to map a detected dynamic attribute to ananimation-effect option.

For example, in the embodiment shown in FIG. 1B, the metadata for thedigital graphic 122 points to an animation-effect database within thedigital communications system that correlates four possible dynamicattributes to four animation-effect options. Specifically, theanimation-effect database indicates that (1) a rotation of the clientdevice 100 in a clockwise direction around a perpendicular axis of theclient device 100 corresponds to a first animation-effect option for aspinning animation in a clockwise direction around a perpendicular axisof the digital graphic 122, (2) a rotation of the client device 100 in acounterclockwise direction around the perpendicular axis of the clientdevice 100 corresponds to a second animation-effect option for aspinning animation in a counterclockwise direction around theperpendicular axis of the digital graphic 122, (3) a rotation of theclient device 100 in a clockwise direction around a longitudinal axis ofthe client device 100 corresponds to a third animation-effect option fora flipping animation in a clockwise direction around a longitudinal axisof the digital graphic 122, and (4) a rotation of the client device 100in a counterclockwise direction around the longitudinal axis of theclient device 100 corresponds to a fourth animation-effect option for aflipping animation in a counterclockwise direction around thelongitudinal axis of the digital graphic 122. As indicated by FIG. 1B,upon receiving data from the gyroscope, the digital communicationssystem maps the gyroscope data to the second animation-effect option fora spinning animation in a counterclockwise direction around theperpendicular axis of the digital graphic 122.

In response to mapping the dynamic attribute to an animation-effectoption, in some embodiments, the digital communications system providesa digital graphic as an overlay on a visual media item—with an animationeffect that corresponds to the mapped animation-effect option. As shownin FIG. 1B, for example, the digital communications system causes theclient device 100 to present the digital graphic 122 with a spinninganimation as an overlay on the live-video stream within the GUI 114. Tocreate the animation effect, and as indicated by arrows 124 a and 124 b,the client device 100 presents a series of digital images of the digitalgraphic 122 that create the illusion that the digital graphic 122 isspinning in a counterclockwise direction around the perpendicular axisof the digital graphic 122.

In addition to providing the digital graphic 122 with a correspondinganimation effect, the digital communications system adjusts theanimation effect based on the magnitude of the detected dynamicattribute. As shown in FIG. 1B, as the client device 100 detects afaster speed from the accelerometer of the client device 100, thedigital communications system increases the frequency of the spinninganimation—with the client device 100 more rapidly presenting digitalimages of the digital graphic 122 that create a spinning illusion inproportion to the faster speed. By contrast, as the client device 100detects a slower speed from the accelerometer of the client device 100,the digital communications system decreases the frequency of thespinning animation—with the client device 100 more slowly presentingdigital images of the digital graphic 122 that create the spinningillusion in proportion to the slower speed.

Similar to the embodiment shown in FIG. 1A, the GUI 114 in FIG. 1Bincludes a live indicator 116 and a viewer indicator 118. The liveindicator 116 and the viewer indicator 118 function in the same way asthe live indicator 106 and the viewer indicator 108, respectively,except that the live-video stream originates from the client device 100in FIG. 1B. In addition to transmitting the live-video stream, thedigital communications system transmits an indication of the digitalgraphic 122 and an indication of its corresponding animation effect toother client devices presenting the live-video stream, including theclient viewer devices. Upon receipt, the indication of the digitalgraphic 122 and the indication of the animation effect trigger thedigital communications system to present the digital graphic 122 as anoverlay on the live-stream video within graphical user interfaces of theother client devices.

The animation effects depicted in FIGS. 1A and 1B are merely exemplary.In some embodiments, the digital communications system provides severaldifferent animation effects based on sensor data from a client device.The digital communications system may provide a digital graphic with avariety of animation effects, including, but not limited to, a scalinganimation that scales the digital graphic based on sensor data from aclient device (e.g., enlarging or shrinking a digital graphic, such as avector graphic of a milkshake, based on a detected shaking motion); amimicking animation that mimics a motion of a client device based onsensor data (e.g., a running animation for an emoji that moves theemoji's legs faster or slower based on a speed detected by anaccelerometer); and a coloring animation that changes a color of adigital graphic based on a change in light detected by the client device(e.g., a glowing animation that brightens a color of a digital graphicas light detected by the client device diminishes). FIG. 1C illustratesan additional embodiment of the digital communications system with onesuch animation effect.

As shown in FIG. 1C, the client device 110 and touch screen 102 performthe same functions as described above with reference to FIGS. 1A and 1B.In FIG. 1C, however, the digital communications system receives userinput to overlay a digital graphic 132 on a video within a graphicaluser interface 130 (“GUI 130”) of the client device 100. Specifically,the client device 100 detects and relays the user input from a user 126shown in FIG. 1C. As indicated by arrows 128 a and 128 b, the user 126jumps up and down while viewing the video on the client device 100. Thejumping motion in turn causes the client device 100 to move up and down.

After receiving the user input to overlay the digital graphic 132, thedigital communications system detects sensor data from the sensors ofthe client device 100. The sensor data indicates an up-and-down motionof the client device 100 on a perpendicular axis of the client device100 at a particular speed. Moreover, the metadata associated with thedigital graphic 132 includes a variety of animation-effect options thatmimic the movement of the client device 100. After receiving the sensordata, the digital communications system maps the detected up-and-downmotion of the client device 100 at the particular speed to a jumpinganimation for the digital graphic 132.

Upon mapping the up-and-down motion, the digital communications systemcauses the client device 100 to present the digital graphic 132 as anoverlay on the video with the jumping animation. As indicated by arrows134 a and 134 b, the client device 100 presents different digital imagesthat change portions of the digital graphic 132—and change a location ofthe digital graphic 132 relative to the GUI 130—to create an illusion ofthe digital graphic 132 jumping.

As with the animated digital graphics described above, the digitalcommunications system may likewise transmit an indication of the digitalgraphic 132 and an indication of the jumping animation from the clientdevice 100 to other client devices. That transmission in turn causes theother client devices to present the digital graphic 132 as an overlay onthe video with the jumping animation. The transmission likewisedemonstrates how the digital communications system enables the user 126to share her interaction with (and reaction to) the video with ananimated version of the digital graphic 132.

Beyond providing a variety of animation effects, the digitalcommunications system also detects dynamic attributes from a variety ofsensors from a client device. For example, in addition to detectingsensor data from an accelerometer and a gyroscope, the digitalcommunications system also detects sensor data from a light sensor orGPS receiver of a client device. In some embodiments, the digitalcommunications system may, for example, present a digital graphic as anoverlay with an animation effect based on a change in light detected bythe light sensor or a change in location detected the GPS receiver. Forexample, the digital communications system may present a digital graphicof an avatar with an animation effect that creates an illusion of theavatar putting on sun glasses based on the light sensor detecting anincrease of brightness above a threshold. As another example, thedigital communications system may present a digital graphic with ananimation effect of falling snow based on the GPS receiver detecting acertain increase in altitude or certain longitudinal and latitudinalcoordinates indicating a cold climate.

In addition to sensor data, in some embodiments, a dynamic attribute mayalso include a motion of an object within a visual media item. As notedabove, the digital communications system may detect people, pixels, orother objects that move within the visual media item. In someembodiments, the digital communications system detects a motion of anobject relative to other objects or relative to its surroundings withina visual media item.

To detect a motion of an object within a visual media item, the digitalcommunications system may use any available method of object-motiondetection. For example, in some embodiments, the digital communicationssystem uses background subtraction to detect a motion of an objectwithin a visual media item. When using background subtraction, thedigital communications system may create a reference background imageand a foreground pixel map to detect a motion of an object within avideo. In some such embodiments, the digital communications systemsubtracts a current image pixel-by-pixel from the reference backgroundimage, such as by averaging images over time in an initializationperiod. The digital communications system may, however, use a variety ofbackground-subtraction techniques, including frame-differencingalgorithms, mean-filter algorithms, Gaussian-average algorithms, orbackground-mixture models.

In addition to background subtraction, in some embodiments, the digitalcommunications system uses temporal differencing to detect a motion ofan object within a visual media item. When using temporal differencing,the digital communications system detects moving regions by taking apixel-by-pixel difference of consecutive frames in a video sequence. Thedigital communications system, for instance, may determine a differencebetween consecutive frames of a video to detect motion from both acamera capturing a video and a moving object within the video. In somesuch embodiments, the digital communications system uses the temporaldifferencing techniques described by A. J. Lipton, H. Fujiyoshi, and R.S. Patil, “Moving Target Classification and Tracking from Real-TimeVideo,” Proceedings of Workshop Applications of Computer Vision 129-136(1998), which is hereby incorporated by reference in its entirety.

While this disclosure describes examples of background subtraction andtemporal differencing, the digital communications system may also, forexample, use statistical approaches or optical-flow algorithms to detecta motion of an object within a visual media item. For example, thedigital communications system may use any of the statistical approachesor optical-flow algorithms described in Soharab Hossain Shaikh et al.,“Moving Object Detection Using Background Subtraction,” 5-14 (2014),which is hereby incorporated by reference in its entirety.

FIGS. 2A-2B provide examples of the digital communications system usinga motion of an object within a visual media item as a dynamic attribute.Similar to some of the embodiments described above, FIGS. 2A and 2Billustrate graphical user interfaces of a client device that presentsdigital graphics as overlays on visual media items with animationeffects for the digital graphics. To trigger the depicted animationeffects, the digital communications system detects a motion of an objectand then presents digital graphics with the animation effects based onthe detected motion. As above, in some embodiments, the digitalcommunications system causes a client device to present a digitalgraphic as an overlay initially without an animation effect andthen—upon detecting a motion of an object—causes the client device topresent the digital graphic with the animation effect.

As shown in both FIGS. 2A and 2B, the digital communications systemprovides digital graphics 210 and 216 as overlays on videos withingraphical user interfaces 204 and 212 (respectively referred to as “GUI204” and “GUI 212”). A client device 200 includes a touch screen 202that facilitates presentation of the videos within the GUI 204 and theGUI 212. In FIG. 2A, the client device 200 records the video depicted inGUI 204 using a camera 206 and then transmits the video to other clientdevices. Accordingly, FIG. 2A depicts the video from the perspective ofa user who originally captures the video. By contrast, in FIG. 2B, anadditional client device (not shown) records and transmits the videodepicted within the GUI 212 to the client device 200. Accordingly, FIG.2B depicts the video from a viewer's perspective, where the vieweroperates the client device 200.

In both FIGS. 2A and 2B, the digital communications system (e.g., adigital communications application running on the client device 200)includes instructions that, when executed by a processor of the clientdevice 200, cause the client device 100 to present the different videosto the user within the GUI 204 and the GUI 212, respectively. Whereasthe video shown within the GUI 204 includes a first object 208, thevideo shown within the GUI 212 includes a second object 212.

As depicted by FIG. 2A, the client device 200 receives user input fromthe user to overlay the digital graphic 210 on the video within the GUI204. Upon receiving an indication of a user selection of the digitalgraphic 210 on the touch screen 202 (e.g., from a menu of digitalgraphics), the digital communications system identifies metadataassociated with the digital graphic 210. In the embodiment depicted byFIG. 2A, the identified metadata indicates an animation effect for thedigital graphic 210 and a dynamic attribute that triggers the animationeffect.

Specifically, the metadata indicates a motion of an object within thevideo as a dynamic attribute that triggers the animation effect. In someembodiments, the metadata specifies the motion of a moving objectclosest to a center or focal point of the video, a fastest moving objectwithin the video, or a biggest moving object within the video as thedynamic attribute that triggers an animation effect. Additionally, insome embodiments, the metadata further specifies one or more objecttypes for the motion of an object, including, but not limited to,animals, balls, body parts, persons, or vehicles.

As further indicated by FIG. 2A, the metadata specifies a motion of amoving object closest to a center 209 within the GUI 204 as the dynamicattribute. As shown, the center 209 comprises dotted lines to indicatethat the client device 200 optionally presents the center 209 within theGUI 204 for the user to view. In some embodiments, however, the clientdevice 200 does not present a visual representation of the center 209within the GUI 204.

Per the metadata associated with the digital graphic 210, the digitalcommunications system detects a motion of the first object 208 anddetermines that the first object 208 is the closest moving object to thecenter 209. After detecting the first object 208—and per the digitalcommunications system's instructions—the client device 200 presents thedigital graphic 210 as an overlay within the GUI 204 with the animationeffect. As specified by the metadata, the animation effect represents abeating heart.

The animation effect for the digital graphic 210 functions similarly tothe animation effect for the digital graphic 110 of FIG. 1A, except thatin FIG. 2A, the animation effect's frequency is based on the magnitudeof the motion of the first object 208. Specifically, as the clientdevice 200 detects a faster motion of the first object 208, the digitalcommunications system increases the frequency of the beatinganimation—with the client device 200 more rapidly presenting large andsmall images of the digital graphic 210 in proportion to the fasterspeed. By contrast, as the client device 200 detects a slower motion ofthe first object 208, the digital communications system decreases thefrequency of the beating animation—with the client device 200 moreslowly presenting the large and small images of the digital graphic 200in proportion to the slower speed.

Turning now to FIG. 2B, this figure illustrates a different animationeffect from a viewer's point of view. As depicted by FIG. 2B, the clientdevice 200 receives user input from the user to overlay the digitalgraphic 216 on the video within the GUI 212. Upon receiving anindication of a user selection of the digital graphic 216 on the touchscreen 202 (e.g., from a menu of digital graphics), the digitalcommunications system identifies metadata associated with the digitalgraphic 216. As depicted by FIG. 2B, the identified metadata indicatesmultiple animation-effect options corresponding to the digital graphic216, with each animation-effect option corresponding to an animationeffect. The metadata further indicates a dynamic attribute that triggerseach animation effect.

By contrast to the metadata associated with the digital graphic 208 inFIG. 2A, the metadata associated with the digital graphic 216 in 2Bspecifies a motion of a fastest moving object within the GUI 214 as thedynamic attribute. The metadata associated with the digital graphic 216further points to an animation-effect database within the digitalcommunications system that correlates two possible dynamic attributes totwo animation-effect options. Specifically, the animation-effectdatabase indicates that (1) a motion of the detected object in a firstdirection (e.g., toward the right side of the GUI 212) corresponds to afirst animation-effect option for a standard siren animation and (2) amotion of the detected object in a second direction (e.g., toward theleft side of the GUI 212) corresponds to a second animation-effectoption for a strobe-light siren animation. The strobe-light sirenanimation alternates colors at a higher frequency and has differentcolors than the standard siren animation.

As indicated by FIG. 2B, the digital communications system detects thata motion of the second object 214 is in the second direction and mapsthe motion of the second object 214 to the second animation-effectoption for a strobe-light siren animation. After mapping the motion ofthe second object 214 to the second animation-effect option—and per thedigital communications system's instructions—the client device 200presents the digital graphic 216 as an overlay within the GUI 212 withthe strobe-light siren animation. Specifically, the client device 200interchangeably presents images of the digital graphic 216 withdifferent alternating colors to create the illusion of a flashingstrobe-light siren as the animation effect.

Similar to the embodiments shown in FIGS. 1A and 1B, the client device200 either receives a live-stream video within the GUI 204 or transmitsthe live-stream video within the GUI 214. The digital communicationssystem also transmits an indication of the digital graphic 210 and anindication of its corresponding animation effect—or alternatively anindication of the digital graphic 216 and an indication of itscorresponding animation effect—to other client devices presenting alive-video stream. The indications of the digital graphics 210 and 216and the indications of their corresponding animation effectsrespectively trigger the digital communications system to present thedigital graphics 210 and 216 as overlays on the live-stream videoswithin graphical user interfaces of the other client devices.

The animation effects depicted in FIGS. 2A and 2B are merely exemplary.In some embodiments, the digital communications system provides severaldifferent animation effects based on a motion of an object within avisual media item. The digital communications system may provide adigital graphic with a variety of animation effects, including, but notlimited to, a scaling animation that scales the digital graphic based ona motion of an object within a visual media item (e.g., enlarging orshrinking a digital graphic based on a detected size of an object as itmoves within the visual media item); a mimicking animation that mimics amotion of a client device based a motion of an object within a visualmedia item (e.g., a running animation for an emoji that moves theemoji's legs faster or slower based on a speed a motion of a personwithin the visual media item); and a coloring animation that changes acolor of a digital graphic based on a brightness of an object orbackground within the visual media item (e.g., a darkening animationthat darkens a shade of a color of a digital graphic as a brightness ofa background within the visual media item increases). FIG. 1Cillustrates an additional embodiment of the digital communicationssystem with one such animation effect.

Turning now to FIG. 3, this figure illustrates a block diagram of oneembodiment of a system environment 300 in which a digital communicationssystem operates. The digital communications system can be embodied inone or more of a digital communications system 302 running on one ormore servers 304 or in the digital communications applications 308, 316a-316 n. The system environment 300 further includes a clienttransmitter device 306 and client viewer devices 314 a-314 n. Asdepicted in FIG. 1, the client transmitter device 306 has an associateduser 310. Similarly, each of the client viewer devices 314 a-314 n havean associated user 318 a-318 n—with the user 318 a associated with theclient viewer device 314 a, the user 318 b associated with the clientviewer device 314 b, and the user 318 n associated with the clientviewer device 314 n.

As further shown in FIG. 3, the user 310 captures and transmits a visualmedia item through the client transmitter device 306, such as alive-video stream. By contrast, the users 318 a-318 n view thetransmitted visual media item on their respective client viewer devices314 a-314 n. Although FIG. 3 illustrates a particular number of clientviewer devices 314 a-314 n and a particular number of associated users318 a-318 n, the system environment 300 may include any number of clientviewer devices and any number of associated users.

The client transmitter device 306 and the client viewer devices 314a-314 n can communicate with the digital communications system 302,including the server(s) 304, over a network 312. In one or moreembodiments, the digital communications system 302 comprises a socialnetworking system as described below with reference to FIGS. 9-10. Inaddition, the network 312 may represent a network or a collection ofnetworks, such as the Internet, a corporate intranet, a local areanetwork (“LAN”), or a combination of two or more such networks. Thenetwork 312 may also be any suitable network over which the clienttransmitter device 306 and the client viewer devices 314 a-314 n (orother components) may access the digital communications system 302 (orvice versa).

As further shown in FIG. 3, the server(s) 304 can enable the variousfunctions, features, processes, methods, and systems described in thisdisclosure using, for example, instructions within the digitalcommunications system 302. Additionally, or alternatively, the server(s)304 coordinate with the client transmitter device 306 and/or the clientviewer devices 314 a-314 n to perform or provide the various functions,features, processes, methods, and systems described in more detailbelow. Although FIG. 3 illustrates a particular arrangement of thedigital communications system 302, server(s) 304, client transmitterdevice 306, network 312, and client viewer devices 314 a-314 n, variousadditional arrangements are possible. For example, the digitalcommunications system 302 and the server(s) 304 may directly communicatewith the client transmitter device 306 and/or the client viewer devices314 a-314 n and thus bypass the network 312.

Generally, the client transmitter device 306 and client viewer devices314 a-314 n can include any one of various types of client devices. Forexample, the client transmitter device 306 or client viewer devices 314a-314 n can include a mobile device (e.g., a smart phone), tablet,laptop computer, desktop computer, television, or any other type ofcomputing device as further explained below with reference to FIG. 8.Additionally, the server(s) 304 can include one or more computingdevices including those explained below with reference to FIG. 8.Moreover, the server(s) 304, digital communications system 302, clienttransmitter device 306, network 312, and client viewer devices 314 a-314n may communicate using any communication platforms and technologiessuitable for transporting data and/or communication signals, includingany known communication technologies, devices, media, and protocolssupportive of data communications, examples of which are described belowwith reference to FIG. 9.

As an overview of the system environment 300, the server(s) 304 providethe client transmitter device 306 and client viewer devices 314 a-314 naccess to the digital communications system 302 through the network 312.In one or more embodiments, when accessing the server(s) 304 of thedigital communications system 302, the client transmitter device 306transmits digitally encoded data to the digital communications system302, such as digitally encoded data representing a visual media item ora digital graphic. The digital communications system 302 can provide,for example, a website that enables the user 310 to transmit alive-video stream, recorded video, digital image, GIF, or digitalgraphic or (in some embodiments) to post, send, edit, or delete digitalmessages within the digital communications system 302. By contrast, inone or more embodiments, when the client viewer devices 314 a-314 naccess the server(s) 304 of the digital communications system 302 (e.g.,through a web site), the client viewer devices 314 a-314 n receive atransmission of digitally encoded data from the digital communicationssystem 302, such as digitally encoded data representing a live-videostream, digital graphic, post, instant message, or comment.

Alternatively, the client transmitter device 306 and the client viewerdevices 314 a-314 n communicate with the server(s) 304 of the digitalcommunications system 302 via a dedicated application on the clienttransmitter device 306 and the client viewer devices 314 a-314 n. Inparticular, the client transmitter device 306 and the client viewerdevices 314 a-314 n each have an associated digital communicationsapplication—with a digital communications application 308 associatedwith the client transmitter device 306, a digital communicationsapplication 316 a associated with the client viewer device 314 a, adigital communications application 316 b associated with the clientviewer device 314 b, and a digital communications application 316 nassociated with the client viewer device 314 n.

In some embodiments, the digital communications application 308 and thedigital communications applications 316 a-316 n comprise web browsers,applets, or other software applications (e.g., native applications)available to the client transmitter device 306 and the client viewerdevices 314 a-314 n, respectively. In some instances, the digitalcommunications system 302 provides data packets comprising the digitalcommunications application 308 or the digital communicationsapplications 316 a-316 n to the client transmitter device 306 and clientviewer devices 314 a-314 n, respectively (e.g., by providing datarepresenting a software application to a mobile device).

The client transmitter device 306 may launch the digital communicationsapplication 308 to facilitate interacting with the digitalcommunications system 302. In some such embodiments, the digitalcommunications application 308 coordinates communications between theclient transmitter device 306 and the server(s) 304 such that, forexample, the client transmitter device 306 transmits a visual media itemto the digital communications system 302 (and the digital communicationssystem 302 in turn transmits the visual media item to the client viewerdevices 314 a-314 n) or access webpages of the digital communicationssystem 302.

To facilitate user interaction with the digital communications system302, the digital communications application 308 can comprise one or moregraphical user interfaces associated with the digital communicationssystem 302; receive indications of interactions of the user 310 with thegraphical user interfaces; and perform various requests, queries, orresponses to other user input. Similarly, the digital communicationsapplications 316 a-316 n may perform the same functions for the clientviewer devices 314 a-314 n (and the users 318 a-318 n) as the digitalcommunications application 308 performs for the client transmitterdevice 306 (and the user 310).

For example, the graphical user interfaces of the digital communicationsapplication 308 and digital communications applications 316 a-316 nfacilitate the transmission of both visual media items and indicationsof digital graphics as overlays on visual media items. Based ondetecting an interaction between the user 310 and a graphical userinterface (provided by the client transmitter device 306)—such as aselection of an option to record and transmit a video—the clienttransmitter device 306 transmits a video to the digital communicationssystem 302 for individual transmission to a viewer or for broadcast to agroup of viewers. Upon receiving the video, the digital communicationssystem 302 transmits the video to one or more of the client viewerdevices 314 a-314 n.

Additionally, based on detecting an interaction between the user 318 aand a graphical user interface (provided by the client viewer device 314a)—such as a selection of a digital graphic—the client viewer device 314a overlays the digital graphic on the video and presents the digitalgraphic with an animation effect based on a detect dynamic attributefrom the client viewer device 314 a. In some embodiments, the clientviewer device 314 a also transmits an indication of the digital graphicand an indication of the animation effect to the digital communicationssystem 302. The digital communications system 302 then transmits theindication of the digital graphic and the indication of the animationeffect to the client transmitter device 306 for the client transmitterdevice 306 to present. As indicated above, in some embodiments, theclient transmitter device 306 likewise receives an indication of adigital graphic, overlays the digital graphic on a visual media itemwith the indicated the animation effect.

Turning now to FIGS. 4A-4B and FIGS. 5A-5B, these figures provide anoverview of embodiments of the digital communications system thatanimate a digital graphic associated with a visual media item based on adetected dynamic attribute. Specifically, FIGS. 4A-4B illustrate arepresentation of a sequence of acts 402-418 that the digitalcommunications system 302, the client transmitter device 306, or theclient viewer device 314 a perform, including transmitting a visualmedia item, detecting a dynamic attribute, and providing a digitalgraphic with an animation effect to one or both of the client viewerdevice 314 a and the client transmitter device 306. Similarly, FIGS.5A-5B illustrate a representation of a sequence of acts 502-522 that thedigital communications system 302, the client transmitter device 306, orthe client viewer devices 314 a-314 n perform, including transmitting avisual media item, detecting a dynamic attribute, and providing adigital graphic with an animation effect in a broadcast to the clienttransmitter device 306 and the client viewer devices 314 a-314 n.

Various aspects of the digital communications system perform the acts402-418 shown in FIGS. 4A-4B or the acts 502-522 shown in FIGS. 5A-5B.In some embodiments, for example, the digital communications system 302comprises computer-executable instructions that cause the server(s) 304to perform one or more of the acts 402-418 or one or more of the acts502-522. Similarly, in certain embodiments, the digital communicationsapplication 308 and the digital communications applications 316 a-316 ncomprise computer-executable instructions that respectively cause theclient transmitter device 306 and the client viewer devices 314 a-314 nto perform one or more of the acts 402-418 or one or more of the acts502-522.

As above, rather than repeatedly describe the relationship between theinstructions within the digital communications system 302 and theserver(s) 304—or the relationship between the instructions within thedigital communications application 308 or the digital communicationsapplications 316 a-316 n and the client transmitter device 306 or theclient viewer devices 314 a-314 n—the disclosure will primarily describethe digital communications system 302, the client transmitter device306, or the client viewer devices 314 a-314 n as performing the acts402-418 and the acts 502-522 as a shorthand for those relationships.

Turning back now to FIGS. 4A-4B, as shown in FIG. 4A, the clienttransmitter device 306 performs the act 402 of sending a visual mediaitem to the digital communications system 302. The digitalcommunications system 302 in turn performs the act 404 of transmittingthe visual media item to the client viewer device 314 a. Consistent withthe disclosure above, in some embodiments, the client transmitter device306 and the digital communications system 302 transmit the visual mediaitem by transmitting a video, digital image, or other visual media itemthrough the network 312.

After receiving the visual media item, the client viewer device 314 aperforms the act 406 of presenting the visual media item. For example,the client viewer device 314 a may present the visual media item withina graphical user interface of the digital communications application 316a. In some embodiments, the client viewer device 314 a presents thevisual media item in a graphical user interface that fills a screen ofthe client viewer device 314 a, such as the videos illustrated in FIGS.1A-2B. By contrast, in some embodiments, the client viewer device 314 apresents the visual media item in a portion of a screen, such as whenthe client viewer device 314 a presents the visual media item as part ofa messaging thread.

In addition to presenting the visual media item, the client viewerdevice 314 a performs the act 408 of presenting adigital-graphic-overlay option. For example, the client viewer device314 a may present a digital-graphic-overlay option through a menu ofdigital graphics within a graphical user interface. In some embodiments,the menu includes digital graphics and corresponding selectable-optionsfor each digital graphic. Upon receiving an indication that one of thedigital graphics has been selected, the digital communicationsapplication 316 a causes the client viewer device 314 a to overlay theselected digital graphic on the visual media item with an animationeffect, as described further below.

As further shown in FIG. 4A, after presenting a digital-graphic-overlayoption, the client viewer device 314 a performs the act 410 of detectinga dynamic attribute. For example, the client viewer device 314 aoptionally performs the act 410 a of detecting a dynamic attribute froma client-viewer-device sensor or the act 410 b of detecting a motion ofan object within the visual media item. When performing the act 410 a,the client viewer device 314 a detects sensor data from a sensor of theclient viewer device 314 a, including, for example, an accelerometer,gyroscope, light sensor, or GPS receiver. The act 410 a includes, but isnot limited to, detecting sensor data from a sensor of a client deviceas described above with reference to FIGS. 1A-1C. By contrast, whenperforming the act 410 b, the client viewer device 314 a detects amotion of an object within the visual media item. The act 410 bincludes, but is not limited to, detecting a motion of an object withinthe visual media item using any of the object-motion-detection methodsdescribed above and the embodiments described with reference to FIGS.2A-2B.

Turning now to FIG. 4B, after detecting a dynamic attribute, the clientviewer device 314 a performs the act 412 of presenting the digitalgraphic as an overlay with an animation effect. In performing the act412, the client viewer device 314 a may present a digital graphic withany animation effect described above, including, but not limited to,those depicted in and described with reference to FIGS. 1A-2C. Forexample, in some embodiments, the client viewer device 314 a presents adigital graphic with an animation effect by sequentially presentingvariations of a digital graphic as an overlay on a visual media item,where the variations of the digital graphic incrementally changeportions of the digital graphic in a series of digital images.

As noted above, in some embodiments, a digital graphic corresponds to asingle animation effect. In such embodiments, either the digitalcommunications system 302 or the digital communications application 316a identifies the corresponding animation effect and then modifies acharacteristic of the animation effect based on the detected dynamicattribute. For example, the digital communications system 302 or thedigital communications application 316 a can modify a frequency,duration, speed, size, etc. of the animation based on a magnitude of thedetected dynamic attribute. The client viewer device 306 then presentsthe digital graphic with the modified animation effect on the visualmedia item. In other embodiments, however, a digital graphic correspondsto multiple animation effects. The digital communications system 302 maymap a detected dynamic attribute to any one of these correspondinganimation effects based on the dynamic attribute. Accordingly, in someembodiments, the client viewer device 314 a optionally performs the act412 a of mapping the dynamic attribute to the animation effect.

In some embodiments, for example, the digital communications application316 a causes the client viewer device 314 a to identify metadataassociated with a selected digital graphic. As noted above, the metadatamay include multiple animation-effect options or may point to ananimation-effect database within the digital communications system 304that correlates dynamic attributes with animation-effect options. Perthe instructions of the digital communications application 314 a, theclient viewer device 314 a maps the detected dynamic attribute to one ofthe animation-effect options, as described above in connection with theclient devices in FIGS. 1B and 2B.

In addition to mapping a detected dynamic attribute to an animationeffect, in some embodiments, the client viewer device 314 a optionallyperforms the act 412 b of adjusting the animation effect. For instance,in some embodiments, the client viewer device 314 a adjusts a frequencyof the animation effect based on a magnitude of the dynamic attribute.Depending on the embodiment, the client viewer device 314 a may adjustthe frequency of the animation effect proportionally or inversely to themagnitude of the dynamic attribute. For example, as a speed of adetected motion of the client viewer device 314 a or a detected motionof an object within a visual media item increases or decreases, theclient viewer device 314 a adjusts the animation effect toproportionally increase or decrease in speed. As another example, insome embodiments, as a path or trajectory of a detected motion of theclient viewer device 314 a or a detected motion of an object within avisual media item increases or decreases, the client viewer device 314 aadjusts the animation effect to proportionally increase or decrease apath or trajectory of an animation effect that mimics the detectedmotion of the client viewer device 314 a or the detect motion of anobject within a visual media item.

In addition to adjusting an animation effect based on a magnitude of thedynamic attribute, in some embodiments, the digital communicationsapplication 308 causes the client viewer device 314 a to adjust theanimation effect based on additional sensor data. For example, in someembodiments, the client viewer device 314 a may map a detected dynamicattribute to an animation effect and then alter the animation effectbased on detected sensor data from a light sensor or GPS receiver. Themetadata associated with a digital graphic may, for example, specify adifferent version of an animation effect based on a brightness of lightdetected by a light sensor or a position detected by a GPS receiver. Inone such example, the metadata specifies one variation of an animationeffect for a digital graphic when sensor data from a light sensorindicates the client viewer device 314 a is outdoors and anothervariation of an animation effect for a digital graphic when sensor datafrom a light sensor indicates the client viewer device 314 a is indoors(e.g., an animation effect for an emoji with digital sunglasses outdoorsand the same animation effect for the emoji without digital sunglassindoors). In another example, the metadata specifies one variation of ananimation effect for a city or other location (e.g., an animation for aspecific sports team or weather associated with a location) and anothervariation of an animation effect for a different city or other location(e.g., a different animation for a different sports team or weatherassociated with a different location).

As noted above, in addition to presenting the digital graphic as anoverlay with an animation effect, in some embodiments, the client viewerdevice 314 a communicates the selected digital graphic and data thattriggers the corresponding animation effect to another client device. Asshown in FIG. 4B, for example, the client viewer device 314 a optionallyperforms the act 414 of sending indications of the digital graphic andthe animation effect to the digital communications system 302, and thedigital communications system 302 optionally performs the act 416 ofsending indications of the digital graphic and the animation effect tothe client transmitter device 306. For the acts 414 and 416, theindications may be an alphanumeric code, metadata, binary code, or someother indicator that corresponds to a selected digital graphic and acorresponding animation effect. For example, the indication for theanimation effect may comprise an indication of sensor data (e.g., aspeed from an accelerometer, orientation from a gyroscope) or anindication of a detected motion of an object within the visual mediaitem that corresponds to the animation effect (e.g., coordinates ofpixels representing a moving object).

In some embodiments, the client viewer device 314 a and the digitalcommunications system 302 repeatedly send indications of the digitalgraphic and/or indications of the animation effect to adjust theanimation effect based on changes in the dynamic attribute. Regardlessof the format or periodicity of the indications, the indication of thedigital graphic and the indication of the animation effect includeencoded data that cause a client device to present the digital graphicas an overlay on the visual media item with the animation effect. Inother words, these indications enable one client device to effectivelysend a digital graphic and corresponding animation effect to anotherclient device.

As further shown in FIG. 4B, upon receipt of the indications of thedigital graphic and the animation effect, the client transmitter device306 optionally performs the act 418 of presenting the digital graphic asan overlay with the animation effect. For example, in some embodiments,the client transmitter device 306 detects user settings that cause it topresent digital graphics selected by users associated with other clientdevices (e.g., client viewer devices 314 a-314 n). For instance, in somecases, the digital communications application 308 receives an indicationof a user setting from the user 310 that directs the client transmitterdevice 306 to present digital graphics selected by a specific user(e.g., the user 318 a) with corresponding animation effects.Additionally, in some embodiments, the digital communicationsapplication 308 receives an indication of a user setting from the user310 that directs the client transmitter device 306 to present digitalgraphics selected by any of the users 318 a-318 n with correspondinganimation effects.

As described above for the acts 402-418, the client viewer device 314 aperforms various actions, such as presenting a digital-graphic-overlayoption, receiving a selection of a digital graphic, presenting thedigital graphic with an animation effect, and transmitting indicationsof the digital graphic and animation effect to the client transmitterdevice 306. In some embodiments, however, the opposite is also (orexclusively) true. In some embodiments, the client transmitter device306 performs various actions with respect to a digital graphic, such aspresenting a digital-graphic-overlay option, receiving a selection of adigital graphic, presenting the digital graphic with an animationeffect, and transmitting indications of the digital graphic andanimation effect to the client viewer device 314 a.

Turning now to FIGS. 5A-5B, as shown in FIG. 5A, the client transmitterdevice 306 performs the act 502 of sending a visual media item to thedigital communications system 302. The digital communications system 302in turn performs the act 504 of transmitting the visual MEDIA item tothe client viewer devices 314 a-314 n. In general, when performing theacts 502 and 504, the client transmitter device 306 transmits the visualmedia item through the digital communications system 302 in a broadcastto the client viewer devices 314 a-314 n. As suggested by theirdescriptions in the figures, the acts 502 and 504 in FIG. 5Arespectively correspond to the acts 402 and 404 in FIG. 4A. Accordingly,the description and embodiments set forth above for the acts 402 and 404respectively apply to the acts 502 and 504—except that the latter actsinvolve broadcasting the visual media item to all the client viewerdevices 314 a-314 n instead of transmitting the visual media item to theclient viewer device 314 a exclusively.

After receiving the visual media item, one or more of the client viewerdevices 314 a-314 n perform the act 506 of presenting the visual mediaitem, the act 508 of presenting a digital-graphic-overlay option, andthe act 510 of detecting a dynamic attribute. As further shown in FIG.5A, one or more of the client viewer devices 314 a-314 n optionallyperform the acts 510 a of detecting a dynamic attribute from aclient-viewer-device sensor or the act 510 b of detecting a motion of anobject within the visual media item. As suggested by their descriptionsin the figures, the acts 506, 508, 510, 510 a, and 510 b in FIG. 5Arespectively correspond to the acts 406, 408, 410, 410 a, and 410 b inFIG. 4A. Accordingly, the description and embodiments set forth abovefor the acts 406, 408, 410, 410 a, and 410 b respectively apply to theacts 506, 508, 510, 510 a, and 510 b—except that the latter acts involveone or more of the client viewer devices 314 a-314 n performing thelatter acts.

In contrast to the embodiments illustrated by FIGS. 4A and 4B, in someembodiments, the digital communications system 302 determines whichanimation effect to provide based on data from one of the client viewerdevices 314 a-314 n. As shown in FIG. 5A, for example, one or more ofthe client viewer devices 314 a-314 n performs the act of sendingindications of the digital graphic and the dynamic attribute. Theseindications represent the digital graphic selected as part of the act508 and the dynamic attribute detected as part of the act 510. Similarto the indications described above, the indications sent as part of theact 512 may be alphanumeric code, metadata, binary code, or some otherindicator that corresponds to a selected digital graphic and a detecteddynamic attribute. For example, the indication of the dynamic attributemay comprise an indication of sensor data (e.g., a speed from anaccelerometer, orientation from a gyroscope) or an indication of adetected motion of an object within the visual media item (e.g.,coordinates of pixels representing a moving object).

In some embodiments, one or more of the client viewer devices 314 a-314n repeatedly send indications of the digital graphic and/or indicationsof the detected dynamic attribute to the digital communications system302. By repeatedly sending such indications, the client viewer devices314 a-314 n provide the digital communications system 302 with data toadjust a selected animation effect. Accordingly, in some embodiments,the digital communications system 302 dynamically adjusts a selectedanimation effect based on updated data sent from one or more of theclient viewer devices 314 a-314 n.

Turning now to FIG. 5B, upon receipt of the indications of the digitalgraphic and the dynamic attribute, the digital communications system 302performs the act 514 of determining an animation effect. Consistent withthe disclosure above, in some embodiments, the digital communicationssystem 302 identifies a single animation effect that corresponds to thedynamic attribute (i.e., the dynamic attribute identified in theindication of the dynamic attribute). In other embodiments, however, thedigital communications system 302 maps the dynamic attribute to one ofmultiple animation effects.

As further shown in FIG. 5B, the digital communications system 302optionally performs the act 514 a of mapping the dynamic attribute tothe animation effect and the act 514 b of adjusting the animationeffect. As suggested by their descriptions in the figures, the optionalacts 514 a and 514 b in FIG. 5A respectively correspond to the optionalacts 412 a and 412 b in FIG. 4A. Accordingly, the description andembodiments set forth above for the acts 412 a and 412 b respectivelyapply to the acts 514 a and 514 b. In contrast to the acts 412 a and 412b, however, the acts 514 a and 514 b involve the digital communicationssystem 302 mapping one or more dynamic attributes to one or morecorresponding animation effects based on indications of digital graphicsand dynamic attributes received from the client viewer devices 314 a-314n. Moreover, in contrast to the acts 412 a and 412 b, the acts 514 a and514 b involve the digital communications system 302 adjusting animationeffects based on the magnitude of a dynamic attribute or additionalsensor data detected by one or more of the client viewer devices 314a-314 n.

Act 514 a can involve, based on the detected dynamic attribute, theclient viewer device mapping the dynamic attribute to an animationeffect. For example, based on the type of dynamic attribute, the clientviewer device can identify one of a plurality of animation effectsassociated with the selected digital graphic. More particular, metadataassociated with the digital graphic can associate a given type ofdynamic attribute (device rotation, device acceleration, device motionsequences that move up and down side to side, etc.) with one of aplurality of animation effects.

Act 514 b can involve, based on the detected dynamic attribute, a clientviewer device adjusting the animation effect. For example, based on themagnitude of the dynamic attribute, the client viewer device can adjusta characteristic of the animation effect. In particular, metadataassociated with the digital graphic can associate a given range or valueof a detected dynamic attribute with a value of a characteristic for theanimation effect. For example, the faster the detected speed of anobject in viewfinder, or the faster the client device accelerates, thefaster the animation effect.

In addition to determining an animation effect, the digitalcommunications system 302 also alters the visual media item to includeone or more digital graphics with animation effects for broadcast tomultiple client devices. As shown in FIG. 5B, for example, the digitalcommunications system 302 performs the act 516 of overlaying the digitalgraphic on the visual media item with the animation effect. For example,the digital communications system 302 may overlay digital graphics onvisual media items as shown within the graphical user interfacesillustrated by FIGS. 1A-2B.

After overlaying the digital graphic on the visual media item, thedigital communications system 302 optionally performs the act 518 a ofsending the visual media item with the digital graphic and the animationeffect to the client transmitter device 306 and optionally performs theact 518 b of sending the visual media item with the digital graphic andthe animation effect to one or more of the client viewer devices 314a-314 n. The digital communications system 302 sometimes distributes thevisual media item with digital graphics based on user settings ordefault settings of user accounts for the users associated with clientdevices. For example, in some embodiments, the digital communicationssystem 302 detects user settings for the user account associated withthe client transmitter device 306. These user settings cause the digitalcommunications system 302 to send the visual media item with theselected digital graphics and corresponding animation effects to boththe client transmitter device 306 and certain of the client viewerdevices 314 a-314 n. In other embodiments, the digital communicationssystem 302 detects default settings for the user account associated withthe client transmitter device 306. These default settings cause thedigital communications system 302 to send the visual media item with theselected digital graphics and corresponding animation effects to theclient transmitter device 306 and all the client viewer devices 314a-314 n.

Turning now to FIG. 6, this figure illustrates a flowchart of a seriesof acts 600 of animating a digital graphic associated with a visualmedia item based on a detected dynamic attribute in accordance with oneor more embodiments. While FIG. 6 illustrates acts according to oneembodiment, alternative embodiments may omit, add to, reorder, and/ormodify any of the acts shown in FIG. 6. The acts of FIG. 6 can beperformed as part of a method. Alternatively, a non-transitory computerreadable medium can comprise instructions, that when executed by one ormore processors, cause a computing device to perform the acts of FIG. 6.In still further embodiments, a system can perform the acts of FIG. 6.

As shown in FIG. 6, the acts 600 include an act 610 of receiving userinput to overlay a digital graphic on a visual media item. Inparticular, in some embodiments, the act 610 includes receiving userinput to overlay a digital graphic on a visual media item within agraphical user interface of a client device. Additionally, in someembodiments, receiving user input to overlay the digital graphic on thevisual media item comprises receiving user input to overlay the digitalgraphic on a video within the graphical user interface of the clientdevice.

As further shown in FIG. 6, the acts 600 include an act 620 of detectinga dynamic attribute from the client device. For example, in one or moreembodiments, Additionally, in some embodiments, detecting the dynamicattribute from the client device comprises determining a magnitude ofthe dynamic attribute. As another example, in some embodiments,detecting the dynamic attribute from the client device comprisesdetecting the dynamic attribute from a sensor of the client device.Relatedly, in some embodiments, detecting the dynamic attribute from theclient device comprises detecting the dynamic attribute from anaccelerometer, gyroscope, light sensor, or Global Positioning Systemreceiver of the client device.

By contrast, in some embodiments, detecting the dynamic attribute fromthe client device comprises detecting a motion of an object within thevisual media item. In some such embodiments, detecting the dynamicattribute from the client device comprises detecting a pattern of theobject's motion within the visual media item. Additionally, in one ormore embodiments, detecting the motion of the object within the visualmedia item comprises detecting one or more of: a speed of the object asthe object moves within the visual media item; a jumping motion of theobject within the visual media item; a rotational motion of the objectwithin the visual media item; a running motion of a person within thevisual media item; or a change in orientation of the object within thevisual media item.

As further shown in FIG. 6, the acts 600 include an act 630 ofpresenting the digital graphic as an overlay on the visual media itemwith an animation effect. In particular, the act 630 includes presentingthe digital graphic as an overlay on the visual media item with ananimation effect based on the dynamic attribute.

Additionally, in some embodiments, presenting the digital graphic as theoverlay on the visual media item with the animation effect comprisespresenting the digital graphic as the overlay on the video with theanimation effect based on the dynamic attribute. Relatedly, in someembodiments, presenting the digital graphic as the overlay on the visualmedia item with the animation effect comprises presenting the digitalgraphic as the overlay on the visual media item with the animationeffect having a frequency based on the magnitude of the dynamicattribute. Moreover, in some embodiments, presenting the digital graphicas the overlay on the visual media item with the animation effect basedon the dynamic attribute comprises mapping the dynamic attribute to theanimation effect, the animation effect being one of a plurality ofanimation effects associated with the digital graphic.

Additionally, in some embodiments presenting the digital graphic as theoverlay on the visual media item with the animation effect comprisesidentifying metadata associated with the digital graphic comprising aplurality of animation-effect options; mapping the dynamic attribute toan animation-effect option of the plurality of animation-effect options,the animation-effect option corresponding to the animation effect; andin response to mapping the dynamic attribute to the animation-effectoption, presenting the digital graphic as the overlay on the visualmedia item with the animation effect.

In addition to the acts 610-630, in some embodiments, the acts 600further includes transmitting, from the client device to another clientdevice, an indication of the digital graphic and an indication of theanimation effect, the indications causing the digital graphic to appearas the overlay on the visual media item with the animation effect.

Turning now to FIG. 7, this figure illustrates a flowchart of a seriesof acts 700 in of animating a digital graphic associated with a visualmedia item based on a detected dynamic attribute in accordance with oneor more embodiments. While FIG. 7 illustrates acts according to oneembodiment, alternative embodiments may omit, add to, reorder, and/ormodify any of the acts shown in FIG. 7. The acts of FIG. 7 can beperformed as part of a method. Alternatively, a non-transitory computerreadable medium can comprise instructions, that when executed by one ormore processors, cause a computing device to perform the acts of FIG. 7.In still further embodiments, a system can perform the acts of FIG. 7.

As shown in FIG. 7, the acts 700 include an act 710 of transmitting avisual media item for presentation to a first client device. As furthershown in FIG. 7, the acts 700 include an act 720 of receiving anindication of a dynamic attribute and an indication of a digital graphicto overlay on the visual media item within a graphical user interface ofa second client device. In particular, the act 720 includes receiving,from the first client device, an indication of a dynamic attribute andan indication of a digital graphic to overlay on the visual media itemwithin a graphical user interface of a second client device. Forexample, in one or more embodiments, receiving the indication of thedigital graphic to overlay on the visual media item comprises receivingthe indication of a vector graphic to overlay on the visual media item.

As further shown in FIG. 7, the acts 700 include an act 730 ofdetermining an animation effect for the digital graphic. In particular,the act 730 includes determining an animation effect for the digitalgraphic based on the dynamic attribute. In some embodiments, determiningthe animation effect for the digital graphic based on the dynamicattribute comprises determining that the dynamic attribute correspondsto an animation effect that changes a portion of the digital graphic.Relatedly, in some embodiments, determining the animation effect for thedigital graphic based on the dynamic attribute comprises: identifying aplurality of animation effects associated with the digital graphic, theplurality of animation effects comprising the animation effect; andmapping the dynamic attribute to the animation effect of the pluralityof animation effects.

Additionally, in some embodiments, determining the animation effect forthe digital graphic based on the dynamic attribute comprises determiningthat the dynamic attribute corresponds to: a scaling animation thatscales the digital graphic based on a motion of an object within thevisual media item detected by the client device or sensor data receivedby the client device; a mimicking animation that mimics a motion of anobject within the visual media item or a motion detected by the clientdevice based on sensor data; and a coloring animation that changes acolor the digital graphic based on a brightness of an object orbackground within the visual media item or a change in light detected bythe client device.

As further shown in FIG. 7, the acts 700 include an act 740 of providingthe digital graphic as an overlay on the visual media item with theanimation effect. For example, in some embodiments, providing thedigital graphic as an overlay on the visual media item with theanimation effect comprises providing the vector graphic as an overlay onthe visual media item with the animation effect. As another example, insome embodiments, providing the digital graphic as an overlay on thevisual media item comprises providing the digital graphic as an overlayon the visual media item with the animation effect that changes aportion of the digital graphic.

In addition to the acts 710-740, in some embodiments, the acts 700include receiving an indication that a magnitude of the dynamicattribute has changed; and based on the indication that the magnitude ofthe dynamic attribute has changed, adjusting the animation effect of thedigital graphic.

Embodiments of the present disclosure may comprise or utilize a specialpurpose or general-purpose computer including computer hardware, suchas, for example, one or more processors and system memory, as discussedin greater detail below. Embodiments within the scope of the presentdisclosure also include physical and other computer-readable media forcarrying or storing computer-executable instructions and/or datastructures. In particular, one or more of the processes described hereinmay be implemented at least in part as instructions embodied in anon-transitory computer-readable medium and executable by one or morecomputing devices (e.g., any of the media content access devicesdescribed herein). In general, a processor (e.g., a microprocessor)receives instructions, from a non-transitory computer-readable medium,(e.g., a memory, etc.), and executes those instructions, therebyperforming one or more processes, including one or more of the processesdescribed herein.

Computer-readable media can be any available media that can be accessedby a general purpose or special purpose computer system.Computer-readable media that store computer-executable instructions arenon-transitory computer-readable storage media (devices).Computer-readable media that carry computer-executable instructions aretransmission media. Thus, by way of example, and not limitation,embodiments of the disclosure can comprise at least two distinctlydifferent kinds of computer-readable media: non-transitorycomputer-readable storage media (devices) and transmission media.

Non-transitory computer-readable storage media (devices) includes RAM,ROM, EEPROM, CD-ROM, solid state drives (“SSDs”) (e.g., based on RAM),Flash memory, phase-change memory (“PCM”), other types of memory, otheroptical disk storage, magnetic disk storage or other magnetic storagedevices, or any other medium which can be used to store desired programcode means in the form of computer-executable instructions or datastructures and which can be accessed by a general purpose or specialpurpose computer.

A “network” is defined as one or more data links that enable thetransport of electronic data between computer systems and/or modulesand/or other electronic devices. When information is transferred orprovided over a network or another communications connection (eitherhardwired, wireless, or a combination of hardwired or wireless) to acomputer, the computer properly views the connection as a transmissionmedium. Transmissions media can include a network and/or data linkswhich can be used to carry desired program code means in the form ofcomputer-executable instructions or data structures and which can beaccessed by a general purpose or special purpose computer. Combinationsof the above should also be included within the scope ofcomputer-readable media.

Further, upon reaching various computer system components, program codemeans in the form of computer-executable instructions or data structurescan be transferred automatically from transmission media tonon-transitory computer-readable storage media (devices) (or viceversa). For example, computer-executable instructions or data structuresreceived over a network or data link can be buffered in RAM within anetwork interface module (e.g., a “NIC”), and then eventuallytransferred to computer system RAM and/or to less volatile computerstorage media (devices) at a computer system. Thus, it should beunderstood that non-transitory computer-readable storage media (devices)can be included in computer system components that also (or evenprimarily) utilize transmission media.

Computer-executable instructions comprise, for example, instructions anddata which, when executed at a processor, cause a general purposecomputer, special purpose computer, or special purpose processing deviceto perform a certain function or group of functions. In someembodiments, computer-executable instructions are executed on ageneral-purpose computer to turn the general-purpose computer into aspecial purpose computer implementing elements of the disclosure. Thecomputer executable instructions may be, for example, binaries,intermediate format instructions such as assembly language, or evensource code. Although the subject matter has been described in languagespecific to structural features and/or methodological acts, it is to beunderstood that the subject matter defined in the appended claims is notnecessarily limited to the described features or acts described above.Rather, the described features and acts are disclosed as example formsof implementing the claims.

Those skilled in the art will appreciate that the disclosure may bepracticed in network computing environments with many types of computersystem configurations, including, personal computers, desktop computers,laptop computers, message processors, hand-held devices, multi-processorsystems, microprocessor-based or programmable consumer electronics,network PCs, minicomputers, mainframe computers, mobile telephones,PDAs, tablets, pagers, routers, switches, and the like. The disclosuremay also be practiced in distributed system environments where local andremote computer systems, which are linked (either by hardwired datalinks, wireless data links, or by a combination of hardwired andwireless data links) through a network, both perform tasks. In adistributed system environment, program modules may be located in bothlocal and remote memory storage devices.

Embodiments of the present disclosure can also be implemented in cloudcomputing environments. In this description, “cloud computing” isdefined as a model for enabling on-demand network access to a sharedpool of configurable computing resources. For example, cloud computingcan be employed in the marketplace to offer ubiquitous and convenienton-demand access to the shared pool of configurable computing resources.The shared pool of configurable computing resources can be rapidlyprovisioned via virtualization and released with low management effortor service provider interaction, and then scaled accordingly.

A cloud-computing model can be composed of various characteristics suchas, for example, on-demand self-service, broad network access, resourcepooling, rapid elasticity, measured service, and so forth. Acloud-computing model can also expose various service models, such as,for example, Software as a Service (“SaaS”), Platform as a Service(“PaaS”), and Infrastructure as a Service (“IaaS”). A cloud-computingmodel can also be deployed using different deployment models such asprivate cloud, community cloud, public cloud, hybrid cloud, and soforth. In this description and in the claims, a “cloud-computingenvironment” is an environment in which cloud computing is employed.

FIG. 8 illustrates a block diagram of exemplary computing device 800that may be configured to perform one or more of the processes describedabove. One will appreciate that one or more computing devices such asthe computing device 800 may implement the digital communications systemdescribed above. Furthermore, any of the devices 100, 200, 304, 306, 314a-314 n can be a computing device 800. As shown by FIG. 8, the computingdevice 800 can comprise a processor 802, a memory 804, a storage device806, an I/O interface 808, and a communication interface 810, which maybe communicatively coupled by way of a communication infrastructure 812.While an exemplary computing device 800 is shown in FIG. 8, thecomponents illustrated in FIG. 8 are not intended to be limiting.Additional or alternative components may be used in other embodiments.Furthermore, in certain embodiments, the computing device 800 caninclude fewer components than those shown in FIG. 8. Components of thecomputing device 800 shown in FIG. 8 will now be described in additionaldetail.

In one or more embodiments, the processor 802 includes hardware forexecuting instructions, such as those making up a computer program. Asan example and not by way of limitation, to execute instructions, theprocessor 802 may retrieve (or fetch) the instructions from an internalregister, an internal cache, the memory 804, or the storage device 806and decode and execute them. In one or more embodiments, the processor802 may include one or more internal caches for data, instructions, oraddresses. As an example and not by way of limitation, the processor 802may include one or more instruction caches, one or more data caches, andone or more translation lookaside buffers (“TLBs”). Instructions in theinstruction caches may be copies of instructions in the memory 804 orthe storage device 806.

The memory 804 may be used for storing data, metadata, and programs forexecution by the processor(s). The memory 804 may include one or more ofvolatile and non-volatile memories, such as Random Access Memory(“RAM”), Read Only Memory (“ROM”), a solid state disk (“SSD”), Flash,Phase Change Memory (“PCM”), or other types of data storage. The memory804 may be internal or distributed memory.

The storage device 806 includes storage for storing data orinstructions. As an example and not by way of limitation, storage device806 can comprise a non-transitory storage medium described above. Thestorage device 806 may include a hard disk drive (“HDD”), flash memory,an optical disc, a magneto-optical disc, magnetic tape, or a UniversalSerial Bus (“USB”) drive or a combination of two or more of these. Thestorage device 806 may include removable or non-removable (or fixed)media, where appropriate. The storage device 806 may be internal orexternal to the computing device 800. In one or more embodiments, thestorage device 806 is non-volatile, solid-state memory. In otherembodiments, the storage device 806 includes read-only memory (“ROM”).Where appropriate, this ROM may be mask programmed ROM, programmable ROM(“PROM”), erasable PROM (“EPROM”), electrically erasable PROM(“EEPROM”), electrically alterable ROM (“EAROM”), or flash memory or acombination of two or more of these.

The I/O interface 808 allows a user to provide input to, receive outputfrom, and otherwise transfer data to and receive data from computingdevice 800. The I/O interface 808 may include a mouse, a keypad or akeyboard, a touchscreen, a camera, an optical scanner, networkinterface, modem, other known I/O devices or a combination of such I/Ointerfaces. The I/O interface 808 may include one or more devices forpresenting output to a user, including, but not limited to, a graphicsengine, a display (e.g., a display screen), one or more output drivers(e.g., display drivers), one or more audio speakers, and one or moreaudio drivers. In certain embodiments, the I/O interface 808 isconfigured to provide graphical data to a display for presentation to auser. The graphical data may be representative of one or more graphicaluser interfaces and/or any other graphical content as may serve aparticular implementation.

The communication interface 810 can include hardware, software, or both.In any event, the communication interface 810 can provide one or moreinterfaces for communication (such as, for example, packet-basedcommunication) between the computing device 800 and one or more othercomputing devices or networks. As an example and not by way oflimitation, the communication interface 810 may include a networkinterface controller (“NIC”) or network adapter for communicating withan Ethernet or other wire-based network or a wireless NIC (“WNIC”) orwireless adapter for communicating with a wireless network, such as aWI-FI.

Additionally, or alternatively, the communication interface 810 mayfacilitate communications with an ad hoc network, a personal areanetwork (“PAN”), a local area network (“LAN”), a wide area network(“WAN”), a metropolitan area network (“MAN”), or one or more portions ofthe Internet or a combination of two or more of these. One or moreportions of one or more of these networks may be wired or wireless. Asan example, the communication interface 810 may facilitatecommunications with a wireless PAN (“WPAN”) (such as, for example, aBLUETOOTH WPAN), a WI-FI network, a WI-MAX network, a cellular telephonenetwork (such as, for example, a Global System for Mobile Communications(“GSM”) network), or other suitable wireless network or a combinationthereof.

Additionally, the communication interface 810 may facilitatecommunications various communication protocols. Examples ofcommunication protocols that may be used include, but are not limitedto, data transmission media, communications devices, TransmissionControl Protocol (“TCP”), Internet Protocol (“IP”), File TransferProtocol (“FTP”), Telnet, Hypertext Transfer Protocol (“HTTP”),Hypertext Transfer Protocol Secure (“HTTPS”), Session InitiationProtocol (“SIP”), Simple Object Access Protocol (“SOAP”), ExtensibleMark-up Language (“XML”) and variations thereof, Simple Mail TransferProtocol (“SMTP”), Real-Time Transport Protocol (“RTP”), User DatagramProtocol (“UDP”), Global System for Mobile Communications (“GSM”)technologies, Code Division Multiple Access (“CDMA”) technologies, TimeDivision Multiple Access (“TDMA”) technologies, Short Message Service(“SMS”), Multimedia Message Service (“MMS”), radio frequency (“RF”)signaling technologies, Long Term Evolution (“LTE”) technologies,wireless communication technologies, in-band and out-of-band signalingtechnologies, and other suitable communications networks andtechnologies.

The communication infrastructure 812 may include hardware, software, orboth that couples components of the computing device 800 to each other.As an example and not by way of limitation, the communicationinfrastructure 812 may include an Accelerated Graphics Port (“AGP”) orother graphics bus, an Enhanced Industry Standard Architecture (“EISA”)bus, a front-side bus (“FSB”), a HYPERTRANSPORT (“HT”) interconnect, anIndustry Standard Architecture (“ISA”) bus, an INFINIBAND interconnect,a low-pin-count (“LPC”) bus, a memory bus, a Micro Channel Architecture(“MCA”) bus, a Peripheral Component Interconnect (“PCI”) bus, aPCI-Express (“PCIe”) bus, a serial advanced technology attachment(“SATA”) bus, a Video Electronics Standards Association local (“VLB”)bus, or another suitable bus or a combination thereof.

As mentioned above, in one or more embodiments, the digitalcommunications system comprises a social-networking system. Asocial-networking system may enable its users (such as persons ororganizations) to interact with the system and with each other. Thesocial-networking system may, with input from a user, create and storein the social-networking system a user profile associated with the user.The user profile may include demographic information,communication-channel information, and information on personal interestsof the user. The social-networking system may also, with input from auser, create and store a record of relationships of the user with otherusers of the social-networking system, as well as provide services (e.g.wall posts, photo-sharing, on-line calendars and event organization,messaging, games, or advertisements) to facilitate social interactionbetween or among users. Also, the social-networking system may allowusers to post photographs and other visual media items to a user'sprofile page (typically known as “wall posts” or “timeline posts”) or ina photo album, both of which may be accessible to other users of thesocial-networking system depending upon the user's configured privacysettings.

FIG. 9 illustrates an example network environment 900 of asocial-networking system. Network environment 900 includes a clientdevice 906, a social networking system 902, and a third-party system 908connected to each other by a network 904. Although FIG. 9 illustrates aparticular arrangement of client device 906, social networking system902, third-party system 908, and network 904, this disclosurecontemplates any suitable arrangement of client device 906, socialnetworking system 902, third-party system 908, and network 904. As anexample and not by way of limitation, two or more of client device 906,social networking system 902, and third-party system 908 may beconnected to each other directly, bypassing network 904. As anotherexample, two or more of client device 906, social networking system 902,and third-party system 908 may be physically or logically co-locatedwith each other in whole or in part. Moreover, although FIG. 9illustrates a particular number of client devices 906, social networkingsystems 902, third-party systems 908, and networks 904, this disclosurecontemplates any suitable number of client devices 906, socialnetworking systems 902, third-party systems 908, and networks 904. As anexample and not by way of limitation, network environment 900 mayinclude multiple client devices 906, social networking systems 902,third-party systems 908, and networks 904.

This disclosure contemplates any suitable network 904. As an example andnot by way of limitation, one or more portions of network 904 mayinclude an ad hoc network, an intranet, an extranet, a virtual privatenetwork (“VPN”), a local area network (“LAN”), a wireless LAN (“WLAN”),a wide area network (“WAN”), a wireless WAN (“WWAN”), a metropolitanarea network (“MAN”), a portion of the Internet, a portion of the PublicSwitched Telephone Network (“PSTN”), a cellular telephone network, or acombination of two or more of these. Network 904 may include one or morenetworks 904.

Links may connect client device 906, social networking system 902, andthird-party system 908 to communication network 904 or to each other.This disclosure contemplates any suitable links. In particularembodiments, one or more links include one or more wireline (such as forexample Digital Subscriber Line (“DSL”) or Data Over Cable ServiceInterface Specification (“DOCSIS”)), wireless (such as for example Wi-Fior Worldwide Interoperability for Microwave Access (“WiMAX”)), oroptical (such as for example Synchronous Optical Network (“SONET”) orSynchronous Digital Hierarchy (“SDH”)) links. In particular embodiments,one or more links each include an ad hoc network, an intranet, anextranet, a VPN, a LAN, a WLAN, a WAN, a WWAN, a MAN, a portion of theInternet, a portion of the PSTN, a cellular technology-based network, asatellite communications technology-based network, another link, or acombination of two or more such links. Links need not necessarily be thesame throughout network environment 900. One or more first links maydiffer in one or more respects from one or more second links.

In particular embodiments, client device 906 may be an electronic deviceincluding hardware, software, or embedded logic components or acombination of two or more such components and capable of carrying outthe appropriate functionalities implemented or supported by clientdevice 906. As an example and not by way of limitation, a client device906 may include any of the computing devices discussed above in relationto FIG. 9. A client device 906 may enable a network user at clientdevice 906 to access network 904. A client device 906 may enable itsuser to communicate with other users at other client devices 906.

In particular embodiments, client device 906 may include a web browser,such as MICROSOFT INTERNET EXPLORER, GOOGLE CHROME or MOZILLA FIREFOX,and may have one or more add-ons, plug-ins, or other extensions, such asTOOLBAR or YAHOO TOOLBAR. A user at client device 906 may enter aUniform Resource Locator (“URL”) or other address directing the webbrowser to a particular server (such as server, or a server associatedwith a third-party system 908), and the web browser may generate a HyperText Transfer Protocol (“HTTP”) request and communicate the HTTP requestto server. The server may accept the HTTP request and communicate toclient device 906 one or more Hyper Text Markup Language (“HTML”) filesresponsive to the HTTP request. Client device 906 may render a webpagebased on the HTML files from the server for presentation to the user.This disclosure contemplates any suitable webpage files. As an exampleand not by way of limitation, webpages may render from HTML files,Extensible Hyper Text Markup Language (“XHTML”) files, or ExtensibleMarkup Language (“XML”) files, according to particular needs. Such pagesmay also execute scripts such as, for example and without limitation,those written in JAVASCRIPT, JAVA, MICROSOFT SILVERLIGHT, combinationsof markup language and scripts such as AJAX (Asynchronous JAVASCRIPT andXML), and the like. Herein, reference to a webpage encompasses one ormore corresponding webpage files (which a browser may use to render thewebpage) and vice versa, where appropriate.

In particular embodiments, social networking system 902 may be anetwork-addressable computing system that can host an online socialnetwork. Social networking system 902 may generate, store, receive, andsend social-networking data, such as, for example, user-profile data,concept-profile data, social-graph information, or other suitable datarelated to the online social network. Social networking system 902 maybe accessed by the other components of network environment 900 eitherdirectly or via network 904. In particular embodiments, socialnetworking system 902 may include one or more servers. Each server maybe a unitary server or a distributed server spanning multiple computersor multiple datacenters. Servers may be of various types, such as, forexample and without limitation, web server, news server, mail server,message server, advertising server, file server, application server,exchange server, database server, proxy server, another server suitablefor performing functions or processes described herein, or anycombination thereof. In particular embodiments, each server may includehardware, software, or embedded logic components or a combination of twoor more such components for carrying out the appropriate functionalitiesimplemented or supported by server. In particular embodiments, socialnetworking system 902 may include one or more data stores. Data storesmay be used to store various types of information. In particularembodiments, the information stored in data stores may be organizedaccording to specific data structures. In particular embodiments, eachdata store may be a relational, columnar, correlation, or other suitabledatabase. Although this disclosure describes or illustrates particulartypes of databases, this disclosure contemplates any suitable types ofdatabases. Particular embodiments may provide interfaces that enable aclient device 906, a social networking system 902, or a third-partysystem 908 to manage, retrieve, modify, add, or delete, the informationstored in data store.

In particular embodiments, social networking system 902 may store one ormore social graphs in one or more data stores. In particularembodiments, a social graph may include multiple nodes—which may includemultiple user nodes (each corresponding to a particular user) ormultiple concept nodes (each corresponding to a particular concept)—andmultiple edges connecting the nodes. Social networking system 902 mayprovide users of the online social network the ability to communicateand interact with other users. In particular embodiments, users may jointhe online social network via social networking system 902 and then addconnections (e.g., relationships) to a number of other users of socialnetworking system 902 whom they want to be connected to. Herein, theterm “friend” may refer to any other user of social networking system902 with whom a user has formed a connection, association, orrelationship via social networking system 902.

In particular embodiments, social networking system 902 may provideusers with the ability to take actions on various types of items orobjects, supported by social networking system 902. As an example andnot by way of limitation, the items and objects may include groups orsocial networks to which users of social networking system 902 maybelong, events or calendar entries in which a user might be interested,computer-based applications that a user may use, transactions that allowusers to buy or sell items via the service, interactions withadvertisements that a user may perform, or other suitable items orobjects. A user may interact with anything that is capable of beingrepresented in social networking system 902 or by an external system ofthird-party system 908, which is separate from social networking system902 and coupled to social networking system 902 via a network 904.

In particular embodiments, social networking system 902 may be capableof linking a variety of entities. As an example and not by way oflimitation, social networking system 902 may enable users to interactwith each other as well as receive content from third-party systems 908or other entities, or to allow users to interact with these entitiesthrough an application programming interfaces (“API”) or othercommunication channels.

In particular embodiments, a third-party system 908 may include one ormore types of servers, one or more data stores, one or more interfaces,including but not limited to APIs, one or more web services, one or morecontent sources, one or more networks, or any other suitable components,e.g., that servers may communicate with. A third-party system 908 may beoperated by a different entity from an entity operating socialnetworking system 902. In particular embodiments, however, socialnetworking system 902 and third-party systems 908 may operate inconjunction with each other to provide social-networking services tousers of social networking system 902 or third-party systems 908. Inthis sense, social networking system 902 may provide a platform, orbackbone, which other systems, such as third-party systems 908, may useto provide social-networking services and functionality to users acrossthe Internet.

In particular embodiments, a third-party system 908 may include athird-party content object provider. A third-party content objectprovider may include one or more sources of content objects, which maybe communicated to a client device 906. As an example and not by way oflimitation, content objects may include information regarding things oractivities of interest to the user, such as, for example, movie showtimes, movie reviews, restaurant reviews, restaurant menus, productinformation and reviews, or other suitable information. As anotherexample and not by way of limitation, content objects may includeincentive content objects, such as coupons, discount tickets, giftcertificates, or other suitable incentive objects.

In particular embodiments, social networking system 902 also includesuser-generated content objects, which may enhance a user's interactionswith social networking system 902. User-generated content may includeanything a user can add, upload, send, or “post” to social networkingsystem 902. As an example and not by way of limitation, a usercommunicates posts to social networking system 902 from a client device906. Posts may include data such as status updates or other textualdata, location information, photos, videos, links, music or othersimilar data or media. Content may also be added to social networkingsystem 902 by a third-party through a “communication channel,” such as anewsfeed or stream.

In particular embodiments, social networking system 902 may include avariety of servers, sub-systems, programs, modules, logs, and datastores. In particular embodiments, social networking system 902 mayinclude one or more of the following: a web server, action logger,API-request server, relevance-and-ranking engine, content-objectclassifier, notification controller, action log,third-party-content-object-exposure log, inference module,authorization/privacy server, search module, advertisement-targetingmodule, user-interface module, user-profile store, connection store,third-party content store, or location store. Social networking system902 may also include suitable components such as network interfaces,security mechanisms, load balancers, failover servers,management-and-network-operations consoles, other suitable components,or any suitable combination thereof. In particular embodiments, socialnetworking system 902 may include one or more user-profile stores forstoring user profiles. A user profile may include, for example,biographic information, demographic information, behavioral information,social information, or other types of descriptive information, such aswork experience, educational history, hobbies or preferences, interests,affinities, or location. Interest information may include interestsrelated to one or more categories. Categories may be general orspecific. As an example and not by way of limitation, if a user “likes”an article about a brand of shoes the category may be the brand, or thegeneral category of “shoes” or “clothing.” A connection store may beused for storing connection information about users. The connectioninformation may indicate users who have similar or common workexperience, group memberships, hobbies, educational history, or are inany way related or share common attributes. The connection informationmay also include user-defined connections between different users andcontent (both internal and external). A web server may be used forlinking social networking system 902 to one or more client devices 906or one or more third-party system 908 via network 904. The web servermay include a mail server or other messaging functionality for receivingand routing messages between social networking system 902 and one ormore client devices 906. An API-request server may allow a third-partysystem 908 to access information from social networking system 902 bycalling one or more APIs. An action logger may be used to receivecommunications from a web server about a user's actions on or off socialnetworking system 902. In conjunction with the action log, athird-party-content-object log may be maintained of user exposures tothird-party-content objects. A notification controller may provideinformation regarding content objects to a client device 906.Information may be pushed to a client device 906 as notifications, orinformation may be pulled from client device 906 responsive to a requestreceived from client device 906. Authorization servers may be used toenforce one or more privacy settings of the users of social networkingsystem 902. A privacy setting of a user determines how particularinformation associated with a user can be shared. The authorizationserver may allow users to opt in to or opt out of having their actionslogged by social networking system 902 or shared with other systems(e.g., third-party system 908), such as, for example, by settingappropriate privacy settings. Third-party-content-object stores may beused to store content objects received from third parties, such as athird-party system 908. Location stores may be used for storing locationinformation received from client devices 906 associated with users.Advertisement-pricing modules may combine social information, thecurrent time, location information, or other suitable information toprovide relevant advertisements, in the form of notifications, to auser.

FIG. 10 illustrates example social graph 1000. In particularembodiments, social networking system 902 may store one or more socialgraphs 1000 in one or more data stores. In particular embodiments,social graph 1000 may include multiple nodes—which may include multipleuser nodes 1002 or multiple concept nodes 1004—and multiple edges 1006connecting the nodes. Example social graph 1000 illustrated in FIG. 10is shown, for didactic purposes, in a two-dimensional visual maprepresentation. In particular embodiments, a social networking system902, client device 906, or third-party system 908 may access socialgraph 1000 and related social-graph information for suitableapplications. The nodes and edges of social graph 1000 may be stored asdata objects, for example, in a data store (such as a social-graphdatabase). Such a data store may include one or more searchable or queryable indexes of nodes or edges of social graph 1000.

In particular embodiments, a user node 1002 may correspond to a user ofsocial networking system 902. As an example and not by way oflimitation, a user may be an individual (human user), an entity (e.g.,an enterprise, business, or third-party application), or a group (e.g.,of individuals or entities) that interacts or communicates with or oversocial networking system 902. In particular embodiments, when a userregisters for an account with social networking system 902, socialnetworking system 902 may create a user node 1002 corresponding to theuser, and store the user node 1002 in one or more data stores. Users anduser nodes 1002 described herein may, where appropriate, refer toregistered users and user nodes 1002 associated with registered users.In addition, or as an alternative, users and user nodes 1002 describedherein may, where appropriate, refer to users that have not registeredwith social networking system 902. In particular embodiments, a usernode 1002 may be associated with information provided by a user orinformation gathered by various systems, including social networkingsystem 902. As an example and not by way of limitation, a user mayprovide his or her name, profile picture, contact information, birthdate, sex, marital status, family status, employment, educationbackground, preferences, interests, or other demographic information.Each user node of the social graph may have a corresponding web page(typically known as a profile page). In response to a request includinga user name, the social-networking system can access a user nodecorresponding to the user name, and construct a profile page includingthe name, a profile picture, and other information associated with theuser. A profile page of a first user may display to a second user all ora portion of the first user's information based on one or more privacysettings by the first user and the relationship between the first userand the second user.

In particular embodiments, a concept node 1004 may correspond to aconcept. As an example and not by way of limitation, a concept maycorrespond to a place (such as, for example, a movie theater,restaurant, landmark, or city); a website (such as, for example, awebsite associated with social networking system 902 or a third-partywebsite associated with a web-application server); an entity (such as,for example, a person, business, group, sports team, or celebrity); aresource (such as, for example, an audio file, video file, digitalphoto, text file, structured document, or application) which may belocated within social networking system 902 or on an external server,such as a web-application server; real or intellectual property (suchas, for example, a sculpture, painting, movie, game, song, idea,photograph, or written work); a game; an activity; an idea or theory;another suitable concept; or two or more such concepts. A concept node1004 may be associated with information of a concept provided by a useror information gathered by various systems, including social networkingsystem 902. As an example and not by way of limitation, information of aconcept may include a name or a title; one or more images (e.g., animage of the cover page of a book); a location (e.g., an address or ageographical location); a website (which may be associated with a URL);contact information (e.g., a phone number or an email address); othersuitable concept information; or any suitable combination of suchinformation. In particular embodiments, a concept node 1004 may beassociated with one or more data objects corresponding to informationassociated with concept nodes 1004. In particular embodiments, a conceptnode 1004 may correspond to one or more webpages.

In particular embodiments, a node in social graph 1000 may represent orbe represented by a webpage (which may be referred to as a “profilepage”). Profile pages may be hosted by or accessible to socialnetworking system 902. Profile pages may also be hosted on third-partywebsites associated with a third-party system 908. As an example and notby way of limitation, a profile page corresponding to a particularexternal webpage may be the particular external webpage and the profilepage may correspond to a particular concept node 1004. Profile pages maybe viewable by all or a selected subset of other users. As an exampleand not by way of limitation, a user node 1002 may have a correspondinguser-profile page in which the corresponding user may add content, makedeclarations, or otherwise express himself or herself. As anotherexample and not by way of limitation, a concept node 1004 may have acorresponding concept-profile page in which one or more users may addcontent, make declarations, or express themselves, particularly inrelation to the concept corresponding to concept nodes 1004.

In particular embodiments, a concept node 1004 may represent athird-party webpage or resource hosted by a third-party system 908. Thethird-party webpage or resource may include, among other elements,content, a selectable or other icon, or other inter-actable object(which may be implemented, for example, in JavaScript, AJAX, or PHPcodes) representing an action or activity. As an example and not by wayof limitation, a third-party webpage may include a selectable icon suchas “like,” “check in,” “eat,” “recommend,” or another suitable action oractivity. A user viewing the third-party webpage may perform an actionby selecting one of the icons (e.g., “eat”), causing a client device 906to send to social networking system 902 a message indicating the user'saction. In response to the message, social networking system 902 maycreate an edge (e.g., an “eat” edge) between a user node 1002corresponding to the user and a concept node 1004 corresponding to thethird-party webpage or resource and store edge 1006 in one or more datastores.

In particular embodiments, a pair of nodes in social graph 1000 may beconnected to each other by one or more edges 1006. An edge 1006connecting a pair of nodes may represent a relationship between the pairof nodes. In particular embodiments, an edge 1006 may include orrepresent one or more data objects or attributes corresponding to therelationship between a pair of nodes. As an example and not by way oflimitation, a first user may indicate that a second user is a “friend”of the first user. In response to this indication, social networkingsystem 902 may send a “friend request” to the second user. If the seconduser confirms the “friend request,” social networking system 902 maycreate an edge 1006 connecting the first user's user node 1002 to thesecond user's user node 1002 in social graph 1000 and store edge 1006 associal-graph information in one or more of data stores. In the exampleof FIG. 10, social graph 1000 includes an edge 1006 indicating a friendrelation between user nodes 1002 of user “A” and user “B” and an edgeindicating a friend relation between user nodes 1002 of user “C” anduser “B.” Although this disclosure describes or illustrates particularedges 1006 with particular attributes connecting particular user nodes1002, this disclosure contemplates any suitable edges 1006 with anysuitable attributes connecting user nodes 1002. As an example and not byway of limitation, an edge 1006 may represent a friendship, familyrelationship, business or employment relationship, fan relationship,follower relationship, visitor relationship, subscriber relationship,superior/subordinate relationship, reciprocal relationship,non-reciprocal relationship, another suitable type of relationship, ortwo or more such relationships. Moreover, although this disclosuregenerally describes nodes as being connected, this disclosure alsodescribes users or concepts as being connected. Herein, references tousers or concepts being connected may, where appropriate, refer to thenodes corresponding to those users or concepts being connected in socialgraph 1000 by one or more edges 1006.

In particular embodiments, an edge 1006 between a user node 1002 and aconcept node 1004 may represent a particular action or activityperformed by a user associated with user node 1002 toward a conceptassociated with a concept node 1004. As an example and not by way oflimitation, as illustrated in FIG. 10, a user may “like,” “attended,”“played,” “listened,” “cooked,” “worked at,” or “watched” a concept,each of which may correspond to an edge type or subtype. Aconcept-profile page corresponding to a concept node 1004 may include,for example, a selectable “check in” icon (such as, for example, aclickable “check in” icon) or a selectable “add to favorites” icon.Similarly, after a user clicks these icons, social networking system 902may create a “favorite” edge or a “check in” edge in response to auser's action corresponding to a respective action. As another exampleand not by way of limitation, a user (user “C”) may listen to aparticular song (“Ramble On”) using a particular application (SPOTIFY,which is an online music application). In this case, social networkingsystem 902 may create a “listened” edge 1006 and a “used” edge (asillustrated in FIG. 10) between user nodes 1002 corresponding to theuser and concept nodes 1004 corresponding to the song and application toindicate that the user listened to the song and used the application.Moreover, social networking system 902 may create a “played” edge 1006(as illustrated in FIG. 10) between concept nodes 1004 corresponding tothe song and the application to indicate that the particular song wasplayed by the particular application. In this case, “played” edge 1006corresponds to an action performed by an external application (SPOTIFY)on an external audio file (the song “Imagine”). Although this disclosuredescribes particular edges 1006 with particular attributes connectinguser nodes 1002 and concept nodes 1004, this disclosure contemplates anysuitable edges 1006 with any suitable attributes connecting user nodes1002 and concept nodes 1004. Moreover, although this disclosuredescribes edges between a user node 1002 and a concept node 1004representing a single relationship, this disclosure contemplates edgesbetween a user node 1002 and a concept node 1004 representing one ormore relationships. As an example and not by way of limitation, an edge1006 may represent both that a user likes and has used at a particularconcept. Alternatively, another edge 1006 may represent each type ofrelationship (or multiples of a single relationship) between a user node1002 and a concept node 1004 (as illustrated in FIG. 10 between usernode 1002 for user “E” and concept nodes 1004 for “SPOTIFY”).

In particular embodiments, social networking system 902 may create anedge 1006 between a user node 1002 and a concept node 1004 in socialgraph 1000. As an example and not by way of limitation, a user viewing aconcept-profile page (such as, for example, by using a web browser or aspecial-purpose application hosted by the user's client device 906) mayindicate that he or she likes the concept represented by the conceptnodes 1004 by clicking or selecting a “Like” icon, which may cause theuser's client device 906 to send to social networking system 902 amessage indicating the user's liking of the concept associated with theconcept-profile page. In response to the message, social networkingsystem 902 may create an edge 1006 between user node 1002 associatedwith the user and concept nodes 1004, as illustrated by “like” edge 1006between the user and concept nodes 1004. In particular embodiments,social networking system 902 may store an edge 1006 in one or more datastores. In particular embodiments, an edge 1006 may be automaticallyformed by social networking system 902 in response to a particular useraction. As an example and not by way of limitation, if a first useruploads a picture, watches a movie, or listens to a song, an edge 1006may be formed between user node 1002 corresponding to the first user andconcept nodes 1004 corresponding to those concepts. Although thisdisclosure describes forming particular edges 1006 in particularmanners, this disclosure contemplates forming any suitable edges 1006 inany suitable manner. In one or more embodiments, the social networkingsystem 902 includes a node for each digital graphic and associatedanimation(s).

In particular embodiments, an advertisement may be text (which may beHTML-linked), one or more images (which may be HTML-linked), one or morevideos, audio, one or more ADOBE FLASH files, a suitable combination ofthese, or any other suitable advertisement in any suitable digitalformat presented on one or more webpages, in one or more e-mails, or inconnection with search results requested by a user. In addition, or asan alternative, an advertisement may be one or more sponsored stories(e.g., a news-feed or ticker item on social networking system 902). Asponsored story may be a social action by a user (such as “liking” apage, “liking” or commenting on a post on a page, RSVPing to an eventassociated with a page, voting on a question posted on a page, checkingin to a place, using an application or playing a game, or “liking” orsharing a website) that an advertiser promotes, for example, by havingthe social action presented within a pre-determined area of a profilepage of a user or other page, presented with additional informationassociated with the advertiser, bumped up or otherwise highlightedwithin news feeds or tickers of other users, or otherwise promoted. Theadvertiser may pay to have the social action promoted. As an example andnot by way of limitation, advertisements may be included among thesearch results of a search-results page, where sponsored content ispromoted over non-sponsored content.

In particular embodiments, an advertisement may be requested for displaywithin social-networking-system webpages, third-party webpages, or otherpages. An advertisement may be displayed in a dedicated portion of apage, such as in a banner area at the top of the page, in a column atthe side of the page, in a GUI of the page, in a pop-up window, in adrop-down menu, in an input field of the page, over the top of contentof the page, or elsewhere with respect to the page. In addition or as analternative, an advertisement may be displayed within an application. Anadvertisement may be displayed within dedicated pages, requiring theuser to interact with or watch the advertisement before the user mayaccess a page or utilize an application. The user may, for example viewthe advertisement through a web browser.

A user may interact with an advertisement in any suitable manner. Theuser may click or otherwise select the advertisement. By selecting theadvertisement, the user may be directed to (or a browser or otherapplication being used by the user) a page associated with theadvertisement. At the page associated with the advertisement, the usermay take additional actions, such as purchasing a product or serviceassociated with the advertisement, receiving information associated withthe advertisement, or subscribing to a newsletter associated with theadvertisement. An advertisement with audio or video may be played byselecting a component of the advertisement (like a “play button”).Alternatively, by selecting the advertisement, social networking system902 may execute or modify a particular action of the user.

An advertisement may also include social-networking-system functionalitythat a user may interact with. As an example and not by way oflimitation, an advertisement may enable a user to “like” or otherwiseendorse the advertisement by selecting an icon or link associated withendorsement. As another example and not by way of limitation, anadvertisement may enable a user to search (e.g., by executing a query)for content related to the advertiser. Similarly, a user may share theadvertisement with another user (e.g., through social networking system902) or RSVP (e.g., through social networking system 902) to an eventassociated with the advertisement. In addition or as an alternative, anadvertisement may include social-networking-system context directed tothe user. As an example and not by way of limitation, an advertisementmay display information about a friend of the user within socialnetworking system 902 who has taken an action associated with thesubject matter of the advertisement.

In particular embodiments, social networking system 902 may determinethe social-graph affinity (which may be referred to herein as“affinity”) of various social-graph entities for each other. Affinitymay represent the strength of a relationship or level of interestbetween particular objects associated with the online social network,such as users, concepts, content, actions, advertisements, other objectsassociated with the online social network, or any suitable combinationthereof. Affinity may also be determined with respect to objectsassociated with third-party systems 908 or other suitable systems. Anoverall affinity for a social-graph entity for each user, subjectmatter, or type of content may be established. The overall affinity maychange based on continued monitoring of the actions or relationshipsassociated with the social-graph entity. Although this disclosuredescribes determining particular affinities in a particular manner, thisdisclosure contemplates determining any suitable affinities in anysuitable manner.

In particular embodiments, social networking system 902 may measure orquantify social-graph affinity using an affinity coefficient (which maybe referred to herein as “coefficient”). The coefficient may representor quantify the strength of a relationship between particular objectsassociated with the online social network. The coefficient may alsorepresent a probability or function that measures a predictedprobability that a user will perform a particular action based on theuser's interest in the action. In this way, a user's future actions maybe predicted based on the user's prior actions, where the coefficientmay be calculated at least in part based on the history of the user'sactions. Coefficients may be used to predict any number of actions,which may be within or outside of the online social network. As anexample and not by way of limitation, these actions may include varioustypes of communications, such as sending messages, posting content, orcommenting on content; various types of an observation actions, such asaccessing or viewing profile pages, media, or other suitable content;various types of coincidence information about two or more social-graphentities, such as being in the same group, tagged in the samephotograph, checked-in at the same location, or attending the sameevent; or other suitable actions. Although this disclosure describesmeasuring affinity in a particular manner, this disclosure contemplatesmeasuring affinity in any suitable manner.

In particular embodiments, social networking system 902 may use avariety of factors to calculate a coefficient. These factors mayinclude, for example, user actions, types of relationships betweenobjects, location information, other suitable factors, or anycombination thereof. In particular embodiments, different factors may beweighted differently when calculating the coefficient. The weights foreach factor may be static or the weights may change according to, forexample, the user, the type of relationship, the type of action, theuser's location, and so forth. Ratings for the factors may be combinedaccording to their weights to determine an overall coefficient for theuser. As an example and not by way of limitation, particular useractions may be assigned both a rating and a weight while a relationshipassociated with the particular user action is assigned a rating and acorrelating weight (e.g., so the weights total 100%). To calculate thecoefficient of a user towards a particular object, the rating assignedto the user's actions may comprise, for example, 60% of the overallcoefficient, while the relationship between the user and the object maycomprise 40% of the overall coefficient. In particular embodiments, thesocial networking system 902 may consider a variety of variables whendetermining weights for various factors used to calculate a coefficient,such as, for example, the time since information was accessed, decayfactors, frequency of access, relationship to information orrelationship to the object about which information was accessed,relationship to social-graph entities connected to the object, short- orlong-term averages of user actions, user feedback, other suitablevariables, or any combination thereof. As an example and not by way oflimitation, a coefficient may include a decay factor that causes thestrength of the signal provided by particular actions to decay withtime, such that more recent actions are more relevant when calculatingthe coefficient. The ratings and weights may be continuously updatedbased on continued tracking of the actions upon which the coefficient isbased. Any type of process or algorithm may be employed for assigning,combining, averaging, and so forth the ratings for each factor and theweights assigned to the factors. In particular embodiments, socialnetworking system 902 may determine coefficients using machine-learningalgorithms trained on historical actions and past user responses, ordata farmed from users by exposing them to various options and measuringresponses. Although this disclosure describes calculating coefficientsin a particular manner, this disclosure contemplates calculatingcoefficients in any suitable manner.

In particular embodiments, social networking system 902 may calculate acoefficient based on a user's actions. Social networking system 902 maymonitor such actions on the online social network, on a third-partysystem 908, on other suitable systems, or any combination thereof. Anysuitable type of user actions may be tracked or monitored. Typical useractions include viewing profile pages, creating or posting content,interacting with content, joining groups, listing and confirmingattendance at events, checking-in at locations, liking particular pages,creating pages, and performing other tasks that facilitate socialaction. In particular embodiments, social networking system 902 maycalculate a coefficient based on the user's actions with particulartypes of content. The content may be associated with the online socialnetwork, a third-party system 908, or another suitable system. Thecontent may include users, profile pages, posts, news stories,headlines, instant messages, chat room conversations, emails,advertisements, pictures, video, music, other suitable objects, or anycombination thereof. Social networking system 902 may analyze a user'sactions to determine whether one or more of the actions indicate anaffinity for subject matter, content, other users, and so forth. As anexample and not by way of limitation, if a user may make frequentlyposts content related to “coffee” or variants thereof, social networkingsystem 902 may determine the user has a high coefficient with respect tothe concept “coffee.” Particular actions or types of actions may beassigned a higher weight and/or rating than other actions, which mayaffect the overall calculated coefficient. As an example and not by wayof limitation, if a first user emails a second user, the weight or therating for the action may be higher than if the first user simply viewsthe user-profile page for the second user.

In particular embodiments, social networking system 902 may calculate acoefficient based on the type of relationship between particularobjects. Referencing the social graph 1000, social networking system 902may analyze the number and/or type of edges 1006 connecting particularuser nodes 1002 and concept nodes 1004 when calculating a coefficient.As an example and not by way of limitation, user nodes 1002 that areconnected by a spouse-type edge (representing that the two users aremarried) may be assigned a higher coefficient than user nodes 1002 thatare connected by a friend-type edge. In other words, depending upon theweights assigned to the actions and relationships for the particularuser, the overall affinity may be determined to be higher for contentabout the user's spouse than for content about the user's friend. Inparticular embodiments, the relationships a user has with another objectmay affect the weights and/or the ratings of the user's actions withrespect to calculating the coefficient for that object. As an exampleand not by way of limitation, if a user is tagged in first photo, butmerely likes a second photo, social networking system 902 may determinethat the user has a higher coefficient with respect to the first photothan the second photo because having a tagged-in-type relationship withcontent may be assigned a higher weight and/or rating than having alike-type relationship with content. In particular embodiments, socialnetworking system 902 may calculate a coefficient for a first user basedon the relationship one or more second users have with a particularobject. In other words, the connections and coefficients other usershave with an object may affect the first user's coefficient for theobject. As an example and not by way of limitation, if a first user isconnected to or has a high coefficient for one or more second users, andthose second users are connected to or have a high coefficient for aparticular object, social networking system 902 may determine that thefirst user should also have a relatively high coefficient for theparticular object. In particular embodiments, the coefficient may bebased on the degree of separation between particular objects. Degree ofseparation between any two nodes is defined as the minimum number ofhops required to traverse the social graph from one node to the other. Adegree of separation between two nodes can be considered a measure ofrelatedness between the users or the concepts represented by the twonodes in the social graph. For example, two users having user nodes thatare directly connected by an edge (i.e., are first-degree nodes) may bedescribed as “connected users” or “friends.” Similarly, two users havinguser nodes that are connected only through another user node (i.e., aresecond-degree nodes) may be described as “friends of friends.” The lowercoefficient may represent the decreasing likelihood that the first userwill share an interest in content objects of the user that is indirectlyconnected to the first user in the social graph 1000. As an example andnot by way of limitation, social-graph entities that are closer in thesocial graph 1000 (i.e., fewer degrees of separation) may have a highercoefficient than entities that are further apart in the social graph1000.

In particular embodiments, social networking system 902 may calculate acoefficient based on location information. Objects that aregeographically closer to each other may be considered to be morerelated, or of more interest, to each other than more distant objects.In particular embodiments, the coefficient of a user towards aparticular object may be based on the proximity of the object's locationto a current location associated with the user (or the location of aclient device 906 of the user). A first user may be more interested inother users or concepts that are closer to the first user. As an exampleand not by way of limitation, if a user is one mile from an airport andtwo miles from a gas station, social networking system 902 may determinethat the user has a higher coefficient for the airport than the gasstation based on the proximity of the airport to the user.

In particular embodiments, social networking system 902 may performparticular actions with respect to a user based on coefficientinformation. Coefficients may be used to predict whether a user willperform a particular action based on the user's interest in the action.A coefficient may be used when generating or presenting any type ofobjects to a user, such as advertisements, search results, news stories,media, messages, notifications, or other suitable objects. Thecoefficient may also be utilized to rank and order such objects, asappropriate. In this way, social networking system 902 may provideinformation that is relevant to user's interests and currentcircumstances, increasing the likelihood that they will find suchinformation of interest. In particular embodiments, social networkingsystem 902 may generate content based on coefficient information.Content objects may be provided or selected based on coefficientsspecific to a user. As an example and not by way of limitation, thecoefficient may be used to generate media for the user, where the usermay be presented with media for which the user has a high overallcoefficient with respect to the media object. As another example and notby way of limitation, the coefficient may be used to generateadvertisements for the user, where the user may be presented withadvertisements for which the user has a high overall coefficient withrespect to the advertised object. In particular embodiments, socialnetworking system 902 may generate search results based on coefficientinformation. Search results for a particular user may be scored orranked based on the coefficient associated with the search results withrespect to the querying user. As an example and not by way oflimitation, search results corresponding to objects with highercoefficients may be ranked higher on a search-results page than resultscorresponding to objects having lower coefficients.

In particular embodiments, social networking system 902 may calculate acoefficient in response to a request for a coefficient from a particularsystem or process. To predict the likely actions a user may take (or maybe the subject of) in a given situation, any process may request acalculated coefficient for a user. The request may also include a set ofweights to use for various factors used to calculate the coefficient.This request may come from a process running on the online socialnetwork, from a third-party system 908 (e.g., via an API or othercommunication channel), or from another suitable system. In response tothe request, social networking system 902 may calculate the coefficient(or access the coefficient information if it has previously beencalculated and stored). In particular embodiments, social networkingsystem 902 may measure an affinity with respect to a particular process.Different processes (both internal and external to the online socialnetwork) may request a coefficient for a particular object or set ofobjects. Social networking system 902 may provide a measure of affinitythat is relevant to the particular process that requested the measure ofaffinity. In this way, each process receives a measure of affinity thatis tailored for the different context in which the process will use themeasure of affinity.

In connection with social-graph affinity and affinity coefficients,particular embodiments may utilize one or more systems, components,elements, functions, methods, operations, or acts disclosed in U.S.patent application Ser. No. 11/503,093, filed 11 Aug. 2006, U.S. patentapplication Ser. No. 12/978,027, filed 22 Dec. 2010, U.S. patentapplication Ser. No. 12/978,265, filed 23 Dec. 2010, and U.S. patentapplication Ser. No. 13/642,869, filed 1 Oct. 2012, each of which isincorporated by reference.

In particular embodiments, one or more of the content objects of theonline social network may be associated with a privacy setting. Theprivacy settings (or “access settings”) for an object may be stored inany suitable manner, such as, for example, in association with theobject, in an index on an authorization server, in another suitablemanner, or any combination thereof. A privacy setting of an object mayspecify how the object (or particular information associated with anobject) can be accessed (e.g., viewed or shared) using the online socialnetwork. Where the privacy settings for an object allow a particularuser to access that object, the object may be described as being“visible” with respect to that user. As an example and not by way oflimitation, a user of the online social network may specify privacysettings for a user-profile page identify a set of users that may accessthe work experience information on the user-profile page, thus excludingother users from accessing the information. In particular embodiments,the privacy settings may specify a “blocked list” of users that shouldnot be allowed to access certain information associated with the object.In other words, the blocked list may specify one or more users orentities for which an object is not visible. As an example and not byway of limitation, a user may specify a set of users that may not accessphotos albums associated with the user, thus excluding those users fromaccessing the photo albums (while also possibly allowing certain usersnot within the set of users to access the photo albums). In particularembodiments, privacy settings may be associated with particularsocial-graph elements. Privacy settings of a social-graph element, suchas a node or an edge, may specify how the social-graph element,information associated with the social-graph element, or content objectsassociated with the social-graph element can be accessed using theonline social network. As an example and not by way of limitation, aparticular concept node 1004 corresponding to a particular photo mayhave a privacy setting specifying that the photo may only be accessed byusers tagged in the photo and their friends. In particular embodiments,privacy settings may allow users to opt in or opt out of having theiractions logged by social networking system 902 or shared with othersystems (e.g., third-party system 908). In particular embodiments, theprivacy settings associated with an object may specify any suitablegranularity of permitted access or denial of access. As an example andnot by way of limitation, access or denial of access may be specifiedfor particular users (e.g., only me, my roommates, and my boss), userswithin a particular degrees-of-separation (e.g., friends, orfriends-of-friends), user groups (e.g., the gaming club, my family),user networks (e.g., employees of particular employers, students oralumni of particular university), all users (“public”), no users(“private”), users of third-party systems 908, particular applications(e.g., third-party applications, external websites), other suitableusers or entities, or any combination thereof. Although this disclosuredescribes using particular privacy settings in a particular manner, thisdisclosure contemplates using any suitable privacy settings in anysuitable manner.

In particular embodiments, one or more servers may beauthorization/privacy servers for enforcing privacy settings. Inresponse to a request from a user (or other entity) for a particularobject stored in a data store, social networking system 902 may send arequest to the data store for the object. The request may identify theuser associated with the request and may only be sent to the user (or aclient device 906 of the user) if the authorization server determinesthat the user is authorized to access the object based on the privacysettings associated with the object. If the requesting user is notauthorized to access the object, the authorization server may preventthe requested object from being retrieved from the data store, or mayprevent the requested object from be sent to the user. In the searchquery context, an object may only be generated as a search result if thequerying user is authorized to access the object. In other words, theobject must have a visibility that is visible to the querying user. Ifthe object has a visibility that is not visible to the user, the objectmay be excluded from the search results. Although this disclosuredescribes enforcing privacy settings in a particular manner, thisdisclosure contemplates enforcing privacy settings in any suitablemanner.

The foregoing specification is described with reference to specificexemplary embodiments thereof. Various embodiments and aspects of thedisclosure are described with reference to details discussed herein, andthe accompanying drawings illustrate the various embodiments. Thedescription above and drawings are illustrative and are not to beconstrued as limiting. Numerous specific details are described toprovide a thorough understanding of various embodiments.

The additional or alternative embodiments may be embodied in otherspecific forms without departing from its spirit or essentialcharacteristics. The described embodiments are to be considered in allrespects only as illustrative and not restrictive. The scope of thepresent disclosure is, therefore, indicated by the appended claimsrather than by the foregoing description. All changes that come withinthe meaning and range of equivalency of the claims are to be embracedwithin their scope.

I claim:
 1. A non-transitory computer readable medium storinginstructions thereon that, when executed by at least one processor,cause a computing device to: present a visual media item within agraphical user interface of the computing device; receive user input tooverlay a digital graphic on the visual media item within the graphicaluser interface; detect a motion of an object within the visual mediaitem; and present the digital graphic as an overlay on the visual mediaitem with an animation effect based on the motion of the object withinthe visual media item.
 2. The non-transitory computer readable medium ofclaim 1, further comprising instructions that, when executed by the atleast one processor, cause the computing device to: receive the userinput to overlay the digital graphic on the visual media item byreceiving user input to overlay the digital graphic on a video withinthe graphical user interface; and present the digital graphic as theoverlay on the visual media item with the animation effect by presentingthe digital graphic as the overlay on the video with the animationeffect based on the motion of the object within the visual media item.3. The non-transitory computer readable medium of claim 1, furthercomprising instructions that, when executed by the at least oneprocessor, cause the computing device to detect the motion of the objectwithin the visual media item by detecting the motion of the objectrelative to an additional object within the visual media item.
 4. Thenon-transitory computer readable medium of claim 1, further comprisinginstructions that, when executed by the at least one processor, causethe computing device to detect the motion of the object within thevisual media item by comparing a reference background image for thevisual media item with a foreground pixel map for the visual media item.5. The non-transitory computer readable medium of claim 1, furthercomprising instructions that, when executed by the at least oneprocessor, cause the computing device to detect the motion of the objectwithin the visual media item by detecting one or more of: a speed of theobject as the object moves within the visual media item; a jumpingmotion of the object within the visual media item; a rotational motionof the object within the visual media item; a running motion of a personwithin the visual media item; or a change in orientation of the objectwithin the visual media item.
 6. The non-transitory computer readablemedium of claim 1, further comprising instructions that, when executedby the at least one processor, cause the computing device to: motion ofthe object within the visual media item by determining a magnitude ofthe motion of the object within the visual media item; and present thedigital graphic as the overlay on the visual media item with theanimation effect by presenting the digital graphic as the overlay on thevisual media item with the animation effect having a frequency based onthe magnitude of the motion of the object within the visual media item.7. The non-transitory computer readable medium of claim 1, furthercomprising instructions that, when executed by the at least oneprocessor, cause the computing device to transmit, from the computingdevice to another computing device, an indication of the digital graphicand an indication of the animation effect, the indications causing thedigital graphic to appear as the overlay on the visual media item withthe animation effect.
 8. The non-transitory computer readable medium ofclaim 1, further comprising instructions that, when executed by the atleast one processor, cause the computing device to present the digitalgraphic as the overlay on the visual media item with the animationeffect by mapping the motion of the object to the animation effect, theanimation effect being one of a plurality of animation effectsassociated with the digital graphic.
 9. A system comprising: at leastone processor; and at least one non-transitory computer readable storagemedium storing instructions that, when executed by the at least oneprocessor, cause a computing device to: present a visual media itemwithin a graphical user interface of the computing device; receive userinput to overlay a digital graphic on the visual media item within agraphical user interface; detect a motion of an object within the visualmedia item; and present the digital graphic as an overlay on the visualmedia item with an animation effect based on the motion of the objectwithin the visual media item.
 10. The system of claim 9, furthercomprising instructions that, when executed by the at least oneprocessor, cause the system to detect the motion of the object withinthe visual media item by detecting the motion of the object relative toan additional object within the visual media item.
 11. The system ofclaim 9, further comprising instructions that, when executed by the atleast one processor, cause the system to detect motion of the objectwithin the visual media item by comparing a reference background imagefor the visual media item with a foreground pixel map for the visualmedia item.
 12. The system of claim 9, further comprising instructionsthat, when executed by the at least one processor, cause the system to:present the digital graphic as the overlay on the visual media iteminitially without the animation effect based on receiving the userinput; and present the digital graphic with the animation effect basedon detecting the motion of the object within the visual media item. 13.The system of claim 9, further comprising instructions that, whenexecuted by the at least one processor, cause the system to detect themotion of the object within the visual media item by detecting a patternof the object's motion within the visual media item.
 14. The system ofclaim 9, further comprising instructions that, when executed by the atleast one processor, cause the system to present the digital graphic asthe overlay on the visual media item with the animation effect by:identifying metadata associated with the digital graphic comprising aplurality of animation-effect options; mapping the motion of the objectto an animation-effect option of the plurality of animation-effectoptions, the animation-effect option corresponding to the animationeffect; and in response to mapping the motion of the object to theanimation-effect option, present the digital graphic as the overlay onthe visual media item with the animation effect.
 15. A methodcomprising: presenting a visual media item within a graphical userinterface of a computing device; receiving user input to overlay adigital graphic on the visual media item within the graphical userinterface; detecting a motion of an object within the visual media item;and presenting the digital graphic as an overlay on the visual mediaitem with an animation effect based on the motion of an object withinthe visual media item.
 16. The method of claim 15, wherein: receivingthe user input to overlay the digital graphic on the visual media itemcomprises receiving user input to overlay the digital graphic on a videowithin the graphical user interface; and presenting the digital graphicas the overlay on the visual media item with the animation effectcomprises presenting the digital graphic as the overlay on the videowith the animation effect based on the motion of the object within thevisual media item.
 17. The method of claim 15, wherein detecting themotion of the object within the visual media item comprises detectingthe motion of the object relative to an additional object within thevisual media item.
 18. The method of claim 15, further comprising:presenting the digital graphic as the overlay on the visual media iteminitially without the animation effect based on receiving the userinput; and presenting the digital graphic with the animation effectbased on detecting the motion of the object within the visual mediaitem.
 19. The method of claim 15, wherein detecting the motion of theobject within the visual media item comprises detecting one or more of:a speed of the object as the object moves within the visual media item;a jumping motion of the object within the visual media item; arotational motion of the object within the visual media item; a runningmotion of a person within the visual media item; or a change inorientation of the object within the visual media item.
 20. The methodof claim 15, wherein: detecting the motion of the object within thevisual media item comprises determining a magnitude of the motion of theobject within the visual media item; and presenting the digital graphicas the overlay on the visual media item with the animation effectcomprises presenting the digital graphic as the overlay on the visualmedia item with the animation effect having a frequency based on themagnitude of the motion of the object within the visual media item.